Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6df95df8 authored by Soonil Nagarkar's avatar Soonil Nagarkar
Browse files

Fix NPE bug in GeofenceManager

Bug: 157682495
Test: CTS
Change-Id: Ibc34fcb4f262c10a0a7cb4b93588e8534daab22a
parent c54ffee6
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -121,7 +121,12 @@ public class GeofenceManager extends

        @Override
        protected ListenerOperation<PendingIntent> onActive() {
            return onLocationChanged(getLastLocation());
            Location location = getLastLocation();
            if (location != null) {
                return onLocationChanged(location);
            } else {
                return null;
            }
        }

        boolean isAppOpsAllowed() {