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

Commit ffea395c authored by wangshouchun's avatar wangshouchun
Browse files

Fix NPE



Bug:172868901
Test:manual verification

device reboot once for UserInfo is null

Signed-off-by: default avatarwangshouchun <wangshouchun@xiaomi.com>
Change-Id: Iddb3eb077ce06fdb1be63ca34ebf8fe2e64f2638
parent f7d62644
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5112,6 +5112,9 @@ public class UserManagerService extends IUserManager.Stub {
                                debugMsg + " for another profile "
                                        + targetUserId + " from " + callingUserId);
                    }
                    Slog.w(LOG_TAG, debugMsg + " for another profile "
                            + targetUserId + " from " + callingUserId);
                    return false;
                }

                UserInfo targetUserInfo = getUserInfoLU(targetUserId);