add null check in custom location engine activity to prevent null pointer exception (#9159)

This commit is contained in:
Pablo Guardiola
2017-06-01 14:10:18 +02:00
committed by GitHub
parent 52eba423ae
commit b2f277ac62

View File

@@ -63,7 +63,9 @@ public class MockLocationEngine extends LocationEngine {
@Override
public void removeLocationUpdates() {
handler.removeCallbacksAndMessages(null);
if (handler != null) {
handler.removeCallbacksAndMessages(null);
}
}
private Location getNextLocation() {