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

Commit 78893c23 authored by Joshua Mccloskey's avatar Joshua Mccloskey
Browse files

Fixed NPE in FingerprintAuthClient

Test: It builds.
Bug: 193883067
Change-Id: I3c310ab6a631750377a069e926567279bedc9d3b
parent c72d4fc1
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
@@ -166,6 +166,7 @@ class FingerprintAuthenticationClient extends AuthenticationClient<ISession> imp
    @Override
    protected void stopHalOperation() {
        UdfpsHelper.hideUdfpsOverlay(getSensorId(), mUdfpsOverlayController);
        if (mCancellationSignal != null) {
            try {
                mCancellationSignal.cancel();
            } catch (RemoteException e) {
@@ -174,6 +175,9 @@ class FingerprintAuthenticationClient extends AuthenticationClient<ISession> imp
                        0 /* vendorCode */);
                mCallback.onClientFinished(this, false /* success */);
            }
        } else {
            Slog.e(TAG, "cancellation signal was null");
        }
    }

    @Override