am 05db1af9: Merge "Fix NPE, caller may not pass loginOptions." into honeycomb

* commit '05db1af9bb42b4b2e668aba2dfcd61878a235764':
  Fix NPE, caller may not pass loginOptions.
This commit is contained in:
Costin Manolache
2011-01-14 10:53:59 -08:00
committed by Android Git Automerger

View File

@@ -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);