Merge "Add NPE check to FpDetectClient" into sc-dev am: 0a2ae5bb54

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

Change-Id: I9f3f47f1bbbc298822f7bacf0dfff4e66c28f301
This commit is contained in:
Joshua Mccloskey
2021-06-22 02:45:30 +00:00
committed by Automerger Merge Worker

View File

@@ -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);
}
}
}