avoid null points in additions to competitor charts

This commit is contained in:
Axel Uhl committed 2012-03-02 16:50:09 +01:00
1 parent 61a026ff0a
commit 7e1fdd6aaf
3 files changed
+12 -11

No files matched your search

@@ -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) {