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

Commit 75b8fc7e authored by Costin Manolache's avatar Costin Manolache
Browse files

Fix NPE, caller may not pass loginOptions.

Change-Id: Ifb6a8bf876d30a9726f535a90ba8c0719a9a04aa
parent 3045bbaf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -888,6 +888,9 @@ public class AccountManagerService
        final boolean permissionGranted = customTokens ||
            permissionIsGranted(account, authTokenType, callerUid);

        if (loginOptions == null) {
            loginOptions = new Bundle();
        }
        if (customTokens) {
            // let authenticator know the identity of the caller
            loginOptions.putInt(AccountManager.KEY_CALLER_UID, callerUid);