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

Commit 606f1715 authored by Ilya Matyukhin's avatar Ilya Matyukhin
Browse files

Add a null a check in fingerprint service

Fixes: 62918794
Test: ran the command from the bug report

Change-Id: Ib00ee46f775c07be5b1e821528dd390ed978b58e
parent 019ec443
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -619,6 +619,15 @@ public class FingerprintService extends SystemService implements IHwBinder.Death

    void startRemove(IBinder token, int fingerId, int groupId, int userId,
            IFingerprintServiceReceiver receiver, boolean restricted, boolean internal) {
        if (token == null) {
            Slog.w(TAG, "startRemove: token is null");
            return;
        }
        if (receiver == null) {
            Slog.w(TAG, "startRemove: receiver is null");
            return;
        }

        IBiometricsFingerprint daemon = getFingerprintDaemon();
        if (daemon == null) {
            Slog.w(TAG, "startRemove: no fingerprint HAL!");