add null check in custom location engine activity to prevent null pointer exception (#9159)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user