mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-20 04:35:32 +00:00
avoid null points in additions to competitor charts
This commit is contained in:
+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