am bdf2d1fa: Merge "[Fix Potential for error]:" into mnc-dev

* commit 'bdf2d1fa382d4016087b2046beb871e9b3edb8df':
  [Fix Potential for error]:
This commit is contained in:
Simranjit Singh Kohli
2015-05-20 01:16:54 +00:00
committed by Android Git Automerger

View File

@@ -2355,9 +2355,9 @@ public class AccountManagerService
callingUid = packageUid;
}
checkReadAccountsPermission();
UserAccounts accounts = getUserAccounts(userId);
long identityToken = clearCallingIdentity();
try {
UserAccounts accounts = getUserAccounts(userId);
synchronized (accounts.cacheLock) {
return getAccountsFromCacheLocked(accounts, type, callingUid, callingPackage);
}