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

Commit c02034a1 authored by Anatol Pomazau's avatar Anatol Pomazau Committed by Android Git Automerger
Browse files

am 34c08828: Merge "Fix NPE in AR hardware binding sequence. b/22772433" into mnc-dr-dev

* commit '34c08828':
  Fix NPE in AR hardware binding sequence. b/22772433
parents 7c388b0f 34c08828
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -123,6 +123,12 @@ public class ActivityRecognitionProxy {
                Log.e(TAG, "No watcher found on connection.");
                return;
            }
            if (mInstance == null) {
                // to keep backwards compatibility do not update the watcher when there is no
                // instance available, or it will cause an NPE
                Log.d(TAG, "AR HW instance not available, binding will be a no-op.");
                return;
            }
            try {
                watcher.onInstanceChanged(mInstance);
            } catch (RemoteException e) {