mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-06 19:12:23 +00:00
avoid null points in additions to competitor charts
This commit is contained in:
1 parent
61a026ff0a
commit
7e1fdd6aaf
3 files changed
+12
-11
No files matched your search
+1
-1
@@ -53,7 +53,7 @@ public class ReverseGeocoderImpl implements ReverseGeocoder {
|
||||
p = cachedPlacemarks.getC().get(0);
|
||||
} else {
|
||||
JSONArray geonames = callNearestService(position);
|
||||
if (!geonames.isEmpty()) {
|
||||
if (geonames != null && !geonames.isEmpty()) {
|
||||
p = JSONToPlacemark((JSONObject) geonames.get(0));
|
||||
|
||||
if (p != null) {
|
||||
|
||||
Reference in new issue
Block a user