commit | 259403ef7f002b90567c70fd3df6d9fd69013299 | [log] [tgz] |
---|---|---|
author | Kweku Adams <kwekua@google.com> | Mon Apr 27 09:25:07 2020 -0700 |
committer | Kweku Adams <kwekua@google.com> | Mon Apr 27 10:40:39 2020 -0700 |
tree | 4396f7135da76861f610096a4fe62ec5f1cfc6a0 | |
parent | cd220824deb05a9d7aeae7d510f8fc6e43495674 [diff] |
Add null check for retrieved package. PackageManagerInternal.getPackage() states that the returned value can be null. Check that the returned object isn't null before calling any of its methods to avoid NullPointerExceptions. Bug: 154899364 Test: atest FrameworksServicesTests:AppStandbyControllerTests Change-Id: Ifcb200a4a0ed6582cc1a368c2949f0aaf32d7dd2