mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-16 07:10:48 +00:00
Bug 4227: Consistently using null as remoteURL for local TrackedRaces in
the REST API
This commit is contained in:
1 parent
8226447cb7
commit
a5991002bf
2 files changed
+4
-10
No files matched your search
+2
-5
@@ -30,11 +30,8 @@ public class DetailedRaceInfoJsonSerializer
|
||||
result.put(SimpleRaceInfoJsonSerializer.FIELD_REGATTA_NAME, object.getIdentifier().getRegattaName());
|
||||
result.put(FIELD_LEADERBOARD_NAME, object.getLeaderboardName());
|
||||
result.put(SimpleRaceInfoJsonSerializer.FIELD_START_OF_RACE, object.getStartOfRace().asMillis());
|
||||
if (object.getRemoteUrl() == null) {
|
||||
result.put(FIELD_REMOTEURL, "");
|
||||
} else {
|
||||
result.put(FIELD_REMOTEURL, object.getRemoteUrl().toExternalForm());
|
||||
}
|
||||
final URL remoteUrl = object.getRemoteUrl();
|
||||
result.put(FIELD_REMOTEURL, remoteUrl == null ? null : remoteUrl.toExternalForm());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user