commit | b2eea3ed0f6234d4c6e2755418238a4b0b7656bb | [log] [tgz] |
---|---|---|
author | Kevin Han <kevhan@google.com> | Tue Sep 14 16:07:43 2021 -0700 |
committer | Kevin Han <kevhan@google.com> | Sat Sep 18 00:41:12 2021 +0000 |
tree | 165757ae9c9ba5215ae826a0f3694c63e3c7b9ff | |
parent | 1f0126502460201ec38ce06c1cc4c2a52b9fe242 [diff] |
Fix NPE in app hibernation dump command. Incorrectly used index instead of the user id to key into the SparseArray, causing a null value to be returned instead of the actual states map for the user. This fixes the issue. Bug: 199935092 Test: Make a new user; adb shell dumpsys app_hibernation Change-Id: I3f6fcfbaa7a5e83bcf2be46c9e05e5f2f76adf52 (cherry picked from commit 984ea4250d8d09299f04ce6b5dce2f51d60b34b5)