Merge "Fixed NPE in FingerprintAuthClient" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e90025458d
@@ -167,14 +167,17 @@ class FingerprintAuthenticationClient extends AuthenticationClient<ISession> imp
|
|||||||
@Override
|
@Override
|
||||||
protected void stopHalOperation() {
|
protected void stopHalOperation() {
|
||||||
mSensorOverlays.hide(getSensorId());
|
mSensorOverlays.hide(getSensorId());
|
||||||
|
if (mCancellationSignal != null) {
|
||||||
try {
|
try {
|
||||||
mCancellationSignal.cancel();
|
mCancellationSignal.cancel();
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Slog.e(TAG, "Remote exception", e);
|
Slog.e(TAG, "Remote exception", e);
|
||||||
onError(BiometricFingerprintConstants.FINGERPRINT_ERROR_HW_UNAVAILABLE,
|
onError(BiometricFingerprintConstants.FINGERPRINT_ERROR_HW_UNAVAILABLE,
|
||||||
0 /* vendorCode */);
|
0 /* vendorCode */);
|
||||||
mCallback.onClientFinished(this, false /* success */);
|
mCallback.onClientFinished(this, false /* success */);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Slog.e(TAG, "cancellation signal was null");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user