Merge "Check for null in addition to instanceof Face"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e6472fe56d
@@ -485,7 +485,7 @@ public class FaceService extends BiometricServiceBase {
|
||||
BiometricAuthenticator.Identifier biometric, int userId)
|
||||
throws RemoteException {
|
||||
if (mFaceServiceReceiver != null) {
|
||||
if (biometric instanceof Face) {
|
||||
if (biometric == null || biometric instanceof Face) {
|
||||
mFaceServiceReceiver.onAuthenticationSucceeded(deviceId, (Face)biometric);
|
||||
} else {
|
||||
Slog.e(TAG, "onAuthenticationSucceeded received non-face biometric");
|
||||
|
||||
Reference in New Issue
Block a user