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

Commit 18779857 authored by Joshua Mccloskey's avatar Joshua Mccloskey
Browse files

Add NPE check to FpDetectClient

Test: N/A
Fixes: 187747020
Change-Id: Id16d5037d675487ad913c51a2e04c57f798027f8
parent d39b5f03
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -124,12 +124,14 @@ class FingerprintDetectClient extends AcquisitionClient<IBiometricsFingerprint>
        final PerformanceTracker pm = PerformanceTracker.getInstanceForSensorId(getSensorId());
        pm.incrementAuthForUser(getTargetUserId(), authenticated);

        if (getListener() != null) {
            try {
                getListener().onDetected(getSensorId(), getTargetUserId(), mIsStrongBiometric);
            } catch (RemoteException e) {
                Slog.e(TAG, "Remote exception when sending onDetected", e);
            }
        }
    }

    @Override
    public int getProtoEnum() {