Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 437a2073 authored by Chandru S's avatar Chandru S
Browse files

Add null check for fingerprint props

Bug: 262838215
Test: NA
Change-Id: I28c8a88a989bf4107698f6e8a4737bcc822df3e6
parent 9af3f455
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1005,11 +1005,13 @@ public class AuthController implements CoreStartable, CommandQueue.Callbacks,
     * not enrolled sfps. This may be false if called before onAllAuthenticatorsRegistered.
     */
    public boolean isRearFpsSupported() {
        if (mFpProps != null) {
            for (FingerprintSensorPropertiesInternal prop: mFpProps) {
                if (prop.sensorType == TYPE_REAR) {
                    return true;
                }
            }
        }
        return false;
    }