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

Commit bdf2d1fa authored by Simranjit Singh Kohli's avatar Simranjit Singh Kohli Committed by Android (Google) Code Review
Browse files

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

parents 1bbe3d4b 6a184878
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2355,9 +2355,9 @@ public class AccountManagerService
            callingUid = packageUid;
            callingUid = packageUid;
        }
        }
        checkReadAccountsPermission();
        checkReadAccountsPermission();
        UserAccounts accounts = getUserAccounts(userId);
        long identityToken = clearCallingIdentity();
        long identityToken = clearCallingIdentity();
        try {
        try {
            UserAccounts accounts = getUserAccounts(userId);
            synchronized (accounts.cacheLock) {
            synchronized (accounts.cacheLock) {
                return getAccountsFromCacheLocked(accounts, type, callingUid, callingPackage);
                return getAccountsFromCacheLocked(accounts, type, callingUid, callingPackage);
            }
            }