commit | f05208818a07e1d80665a4a391b5b04d57e7a710 | [log] [tgz] |
---|---|---|
author | Kevin Han <kevhan@google.com> | Wed Feb 17 18:13:56 2021 -0800 |
committer | Kevin Han <kevhan@google.com> | Wed Feb 17 18:13:56 2021 -0800 |
tree | 109b339ba515892111a5c31de31cbdcdf818d19e | |
parent | c2d6240642852362dc6e255d6396b9065e79762c [diff] |
Check user states exist before package add/removal It's possible for packages to be added/removed for a user even if they are not yet unlocked. This could cause a NPE, so we check beforehand and ignore if the the user states have not been initialized. This is fine because on user unlock, we get the most up to date package data anyway. Bug: 175829330 Test: atest AppHibernationService Change-Id: Ia29359d38325be5a40d84237fd7fc1b5ba356c5d