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

Commit 8d3a8b13 authored by yuanhao's avatar yuanhao Committed by android-build-merger
Browse files

Merge "Fixed NPE in canAddMoreManagedProfiles"

am: a83222e4

Change-Id: Icd63296061485d29a95fa6c6735a8c1a91099afc
parents 2155be02 a83222e4
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()