Merge "Fix possible NPE in FingerprintManager."
This commit is contained in:
committed by
Android (Google) Code Review
commit
cf8bf2f3b1
@@ -1080,7 +1080,7 @@ public class FingerprintManager implements BiometricAuthenticator, BiometricFing
|
||||
*/
|
||||
public boolean isPowerbuttonFps() {
|
||||
final FingerprintSensorPropertiesInternal sensorProps = getFirstFingerprintSensor();
|
||||
return sensorProps.sensorType == TYPE_POWER_BUTTON;
|
||||
return sensorProps == null ? false : sensorProps.sensorType == TYPE_POWER_BUTTON;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user