avoid null points in additions to competitor charts

This commit is contained in:
Axel Uhl
2012-03-02 16:50:09 +01:00
parent 61a026ff0a
commit 7e1fdd6aaf
3 changed files with 12 additions and 11 deletions
@@ -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) {