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

Commit 3f7961f2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix NPE in FaceDetectClient" into sc-dev am: 48239434

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15014047

Change-Id: Ib908b26a61c4585c281afdd5e15db7e6296ae73f
parents bd958318 48239434
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@ public class FaceDetectClient extends AcquisitionClient<ISession> implements Det

    @Override
    protected void stopHalOperation() {
        if (mCancellationSignal != null) {
            try {
                mCancellationSignal.cancel();
            } catch (RemoteException e) {
@@ -66,6 +67,7 @@ public class FaceDetectClient extends AcquisitionClient<ISession> implements Det
                mCallback.onClientFinished(this, false /* success */);
            }
        }
    }

    @Override
    protected void startHalOperation() {