Merge "Fix NPE in FaceDetectClient" into sc-dev am: 4823943403
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15014047 Change-Id: Ib908b26a61c4585c281afdd5e15db7e6296ae73f
This commit is contained in:
@@ -59,11 +59,13 @@ public class FaceDetectClient extends AcquisitionClient<ISession> implements Det
|
||||
|
||||
@Override
|
||||
protected void stopHalOperation() {
|
||||
try {
|
||||
mCancellationSignal.cancel();
|
||||
} catch (RemoteException e) {
|
||||
Slog.e(TAG, "Remote exception", e);
|
||||
mCallback.onClientFinished(this, false /* success */);
|
||||
if (mCancellationSignal != null) {
|
||||
try {
|
||||
mCancellationSignal.cancel();
|
||||
} catch (RemoteException e) {
|
||||
Slog.e(TAG, "Remote exception", e);
|
||||
mCallback.onClientFinished(this, false /* success */);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user