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

Commit a83222e4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fixed NPE in canAddMoreManagedProfiles"

parents 3a7253a0 47f9f7cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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()