Add null check for fingerprint props

Bug: 262838215
Test: NA
Change-Id: I28c8a88a989bf4107698f6e8a4737bcc822df3e6
This commit is contained in:
Chandru S
2023-04-06 01:18:50 -07:00
parent 9af3f4558e
commit 437a20733f

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;