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

Commit 70abb512 authored by yuanhao's avatar yuanhao Committed by android-build-merger
Browse files

Merge "Fixed NPE in canAddMoreManagedProfiles" am: a83222e4 am: 8d3a8b13

am: 1a34a412

Change-Id: Ic3673491705af125a88f66460996911244184fc8
parents 61650097 1a34a412
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1468,7 +1468,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()