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

Commit 20224639 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE when getting managed profile info."

parents 95111379 129771a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -914,7 +914,7 @@ class RecentTasks {
        mTmpQuietProfileUserIds.clear();
        mTmpQuietProfileUserIds.clear();
        for (int userId : profileUserIds) {
        for (int userId : profileUserIds) {
            final UserInfo userInfo = mUserController.getUserInfo(userId);
            final UserInfo userInfo = mUserController.getUserInfo(userId);
            if (userInfo.isManagedProfile() && userInfo.isQuietModeEnabled()) {
            if (userInfo != null && userInfo.isManagedProfile() && userInfo.isQuietModeEnabled()) {
                mTmpQuietProfileUserIds.put(userId, true);
                mTmpQuietProfileUserIds.put(userId, true);
            }
            }
            if (DEBUG_RECENTS_TRIM_TASKS) Slog.d(TAG, "User: " + userInfo
            if (DEBUG_RECENTS_TRIM_TASKS) Slog.d(TAG, "User: " + userInfo