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

Commit 09e86805 authored by Ilya Matyukhin's avatar Ilya Matyukhin Committed by android-build-merger
Browse files

Merge "Add a null a check in fingerprint service" into pi-dev

am: 3577f6df

Change-Id: I3453f38f3fc5a6b9112f682e0a97a63632f7e8a0
parents d458c1c9 3577f6df
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!");