Merge "Add null check for fingerprint props" into udc-dev

This commit is contained in:
Chandru S
2023-04-08 02:57:07 +00:00
committed by Android (Google) Code Review

View File

@@ -1005,9 +1005,11 @@ public class AuthController implements CoreStartable, CommandQueue.Callbacks,
* not enrolled sfps. This may be false if called before onAllAuthenticatorsRegistered.
*/
public boolean isRearFpsSupported() {
for (FingerprintSensorPropertiesInternal prop: mFpProps) {
if (prop.sensorType == TYPE_REAR) {
return true;
if (mFpProps != null) {
for (FingerprintSensorPropertiesInternal prop: mFpProps) {
if (prop.sensorType == TYPE_REAR) {
return true;
}
}
}
return false;