diff --git a/android/src/com/mapswithme/maps/location/LocationService.java b/android/src/com/mapswithme/maps/location/LocationService.java index 7578e087b3..824f75618a 100644 --- a/android/src/com/mapswithme/maps/location/LocationService.java +++ b/android/src/com/mapswithme/maps/location/LocationService.java @@ -186,7 +186,8 @@ public class LocationService implements LocationListener, SensorEventListener, W // Pass last known location only in the end of all registerListener // in case, when we want to disconnect in listener. - onLocationChanged(lastKnown); + if (lastKnown != null) + onLocationChanged(lastKnown); } } else