Skip to content

Commit ba84cac

Browse files
wangshouchunGenkzsz11
authored andcommitted
UserManagerService: Fix NPE
Bug:172868901 Test:manual verification device reboot once for UserInfo is null Signed-off-by: wangshouchun <wangshouchun@xiaomi.com> Change-Id: Iddb3eb077ce06fdb1be63ca34ebf8fe2e64f2638 Signed-off-by: DennySPb <dennyspb@gmail.com>
1 parent 288011a commit ba84cac

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

services/core/java/com/android/server/pm/UserManagerService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5183,6 +5183,9 @@ public boolean isProfileAccessible(int callingUserId, int targetUserId, String d
51835183
debugMsg + " for another profile "
51845184
+ targetUserId + " from " + callingUserId);
51855185
}
5186+
Slog.w(LOG_TAG, debugMsg + " for another profile "
5187+
+ targetUserId + " from " + callingUserId);
5188+
return false;
51865189
}
51875190

51885191
UserInfo targetUserInfo = getUserInfoLU(targetUserId);

0 commit comments

Comments
 (0)