Merge "Fixed NPE in canAddMoreManagedProfiles"
am: a83222e4fb
Change-Id: Icd63296061485d29a95fa6c6735a8c1a91099afc
This commit is contained in:
@@ -1443,7 +1443,7 @@ public class UserManagerService extends IUserManager.Stub {
|
||||
}
|
||||
synchronized(mUsersLock) {
|
||||
UserInfo userInfo = getUserInfoLU(userId);
|
||||
if (!userInfo.canHaveProfile()) {
|
||||
if (userInfo == null || !userInfo.canHaveProfile()) {
|
||||
return false;
|
||||
}
|
||||
int usersCountAfterRemoving = getAliveUsersExcludingGuestsCountLU()
|
||||
|
||||
Reference in New Issue
Block a user