Merge "Fix NPE in app hibernation dump command." into sc-qpr1-dev am: 9197f62ab3 am: f11ff04592

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15857695

Change-Id: Ia8fdd98e13124c46b6ddf5078018057531add65c
This commit is contained in:
Rajeev Kumar
2021-09-20 23:01:08 +00:00
committed by Automerger Merge Worker

View File

@@ -696,7 +696,7 @@ public final class AppHibernationService extends SystemService {
idpw.print("User Level Hibernation States, ");
idpw.printPair("user", userId);
idpw.println();
Map<String, UserLevelState> stateMap = mUserStates.get(i);
Map<String, UserLevelState> stateMap = mUserStates.get(userId);
idpw.increaseIndent();
for (UserLevelState state : stateMap.values()) {
idpw.print(state);