Merge "Add NPE check to FpDetectClient" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0a2ae5bb54
@@ -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