From 3cc3549ec68701ccdd8f230fe7e0fbbca4f16cdc Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 18 Dec 2015 13:53:47 +0200 Subject: [PATCH] Update utilities --- OsmAnd-java/src/net/osmand/binary/GeocodingUtilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-java/src/net/osmand/binary/GeocodingUtilities.java b/OsmAnd-java/src/net/osmand/binary/GeocodingUtilities.java index 711124ab01..4c23500c1f 100644 --- a/OsmAnd-java/src/net/osmand/binary/GeocodingUtilities.java +++ b/OsmAnd-java/src/net/osmand/binary/GeocodingUtilities.java @@ -265,7 +265,7 @@ public class GeocodingUtilities { @Override public boolean isCancelled() { - return result.isCancelled(); + return result != null && result.isCancelled(); } }, mainWord); reader.searchAddressDataByName(req);