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

This commit is contained in:
Simranjit Singh Kohli
2015-05-20 01:04:56 +00:00
committed by Android (Google) Code Review

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