diff --git a/OsmAnd/src/net/osmand/plus/OsmAndLocationProvider.java b/OsmAnd/src/net/osmand/plus/OsmAndLocationProvider.java index b3046bc6c3..5b2611e2c2 100644 --- a/OsmAnd/src/net/osmand/plus/OsmAndLocationProvider.java +++ b/OsmAnd/src/net/osmand/plus/OsmAndLocationProvider.java @@ -869,6 +869,7 @@ public class OsmAndLocationProvider implements SensorEventListener { } public net.osmand.Location getLastKnownLocation() { + net.osmand.Location location = this.location; if (location != null && locationRequestsCounter == 0 && System.currentTimeMillis() - location.getTime() > STALE_LOCATION_TIMEOUT) { location = null;