diff options
author | Kweku Adams <kwekua@google.com> | 2020-04-27 09:25:07 -0700 |
---|---|---|
committer | Kweku Adams <kwekua@google.com> | 2020-04-27 10:40:39 -0700 |
commit | 259403ef7f002b90567c70fd3df6d9fd69013299 (patch) | |
tree | 4396f7135da76861f610096a4fe62ec5f1cfc6a0 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions