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

Commit 980e5b58 authored by Kevin Chyn's avatar Kevin Chyn Committed by Android (Google) Code Review
Browse files

Merge "Fix logic error / possible NPE in AuthenticationSidecar"

parents 57c5fe9b 9c8739c8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -117,12 +117,12 @@ public class FingerprintAuthenticateSidecar extends InstrumentedPreferenceFragme
    public void setListener(Listener listener) {
        if (mListener == null && listener != null) {
            if (mAuthenticationResult != null) {
                mListener.onAuthenticationSucceeded(mAuthenticationResult);
                listener.onAuthenticationSucceeded(mAuthenticationResult);
                mAuthenticationResult = null;
            }
            if (mAuthenticationError != null &&
                    mAuthenticationError.error != FingerprintManager.FINGERPRINT_ERROR_CANCELED) {
                mListener.onAuthenticationError(mAuthenticationError.error,
                listener.onAuthenticationError(mAuthenticationError.error,
                        mAuthenticationError.errorString);
                mAuthenticationError = null;
            }