diff --git a/src/org/thoughtcrime/securesms/geolocation/LocationBackgroundService.java b/src/org/thoughtcrime/securesms/geolocation/LocationBackgroundService.java index ac1668205..8ae613414 100644 --- a/src/org/thoughtcrime/securesms/geolocation/LocationBackgroundService.java +++ b/src/org/thoughtcrime/securesms/geolocation/LocationBackgroundService.java @@ -111,6 +111,9 @@ public class LocationBackgroundService extends Service { @Override public void onLocationChanged(Location location) { Log.d(TAG, "onLocationChanged: " + location); + if (location == null) { + return; + } if (isBetterLocation(location, DcLocation.getInstance().getLastLocation())) { DcLocation.getInstance().updateLocation(location); }