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

Commit 3f5a179f authored by Yasin Kilicdere's avatar Yasin Kilicdere
Browse files

Fix NullPointerException in UserController.forceStopUser

Fixes: 326430999
Test: atest ResetPasswordWithTokenTest#setPasswordMinimumSymbols_one_passwordWithAtLeastOneSymbolRequired
Test: atest DeviceManagementCoexistenceTest#addUserRestrictionGlobally_serialisation_loadsPolicy
Flag: None
Change-Id: I4be5959fa6b81598ca55882e9e392500ca0d3974
parent 678678fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1468,7 +1468,7 @@ class UserController implements Handler.Callback {

        // Send PROFILE_INACCESSIBLE broadcast if a profile was stopped
        final UserInfo userInfo = getUserInfo(userId);
        if (userInfo.isProfile()) {
        if (userInfo != null && userInfo.isProfile()) {
            UserInfo parent = mInjector.getUserManager().getProfileParent(userId);
            if (parent != null) {
                broadcastProfileAccessibleStateChanged(userId, parent.id,