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

Commit c2b74b73 authored by Wonsik Kim's avatar Wonsik Kim Committed by Daniel Estrada Alva
Browse files

Fix NPE when fused geofence hardware is not available.

b/16690237

Change-Id: I3ac50c8fd50fc799afcfc76126a5fd0c9ba0a5f4
parent ad3aa32f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ public final class GeofenceHardwareImpl {
    private void updateFusedHardwareAvailability() {
        boolean fusedSupported;
        try {
            fusedSupported = mFusedService.isSupported();
            fusedSupported = (mFusedService != null ? mFusedService.isSupported() : false);
        } catch (RemoteException e) {
            Log.e(TAG, "RemoteException calling LocationManagerService");
            fusedSupported = false;