Fix logic error / possible NPE in AuthenticationSidecar
Fixes: 67329646 Test: manual Change-Id: Ifec339dbc9112c0a1e1ad6595deaab4ec328d365
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user