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

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

Change-Id: Ibe5c1987424dd674df6017420af851af3cf718d5
This commit is contained in:
Rajeev Kumar
2021-09-25 02:17:49 +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);