diff options
| author | Cherie Cheung <cherieccy@google.com> | 2021-06-23 16:19:52 +0900 |
|---|---|---|
| committer | Cherie Cheung <cherieccy@google.com> | 2021-08-19 04:16:54 +0000 |
| commit | ca051dd9d9680a49852ae130c1c0fec3d52fe63b (patch) | |
| tree | 92f1fb13fca594f6dd05da85590ef52650f05fd4 /core/java/android/util/SparseArrayMap.java | |
| parent | e166cae76ee1e67c635f54632934eece1ea19a3a (diff) | |
PackageManagerService: Fix a null pointer exception in addForInitLI
The original code can potentially access a null pointer in
"pkgSetting" variable while preparing for an exception to throw.
This CL adds a check before using its value.
Bug: 189106370
Test: Build successful. No regression in app installation.
Change-Id: I6390a5d20409ac8641e91bffa6a85fefc50c68a6
(cherry picked from commit efda5d48a3343830a58b49ce363dc108be916b47)
(cherry picked from commit ced771333beb7e35c89715a20081f261b8521819)
Diffstat (limited to 'core/java/android/util/SparseArrayMap.java')
0 files changed, 0 insertions, 0 deletions
