Merge "Add NPE check to FpDetectClient" into sc-dev am: 0a2ae5bb54 am: 35fe01c04c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15053499 Change-Id: I4863d6bc0b16d5059200c9338099e29e7ad2786b
This commit is contained in:
@@ -124,10 +124,12 @@ class FingerprintDetectClient extends AcquisitionClient<IBiometricsFingerprint>
|
||||
final PerformanceTracker pm = PerformanceTracker.getInstanceForSensorId(getSensorId());
|
||||
pm.incrementAuthForUser(getTargetUserId(), authenticated);
|
||||
|
||||
try {
|
||||
getListener().onDetected(getSensorId(), getTargetUserId(), mIsStrongBiometric);
|
||||
} catch (RemoteException e) {
|
||||
Slog.e(TAG, "Remote exception when sending onDetected", e);
|
||||
if (getListener() != null) {
|
||||
try {
|
||||
getListener().onDetected(getSensorId(), getTargetUserId(), mIsStrongBiometric);
|
||||
} catch (RemoteException e) {
|
||||
Slog.e(TAG, "Remote exception when sending onDetected", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user