Merge "Check for null in addition to instanceof Face"

This commit is contained in:
TreeHugger Robot
2018-11-13 22:29:57 +00:00
committed by Android (Google) Code Review

View File

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