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

Commit 89ab29d8 authored by Weldon Fishuman's avatar Weldon Fishuman Committed by Steve Kondik
Browse files

getAuthToken() could return null bundle. Add null checking to prevent...

getAuthToken() could return null bundle. Add null checking to prevent unexpected NullPointerException.
parent f9e32670
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -450,6 +450,7 @@ public class AccountManager {
            throws OperationCanceledException, IOException, AuthenticatorException {
        Bundle bundle = getAuthToken(account, authTokenType, notifyAuthFailure, null /* callback */,
                null /* handler */).getResult();
        if ( bundle == null ) return null;
        return bundle.getString(KEY_AUTHTOKEN);
    }