summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2018-11-13 15:46:27 +0000
committerNicolas Geoffray <ngeoffray@google.com>2018-11-13 21:23:52 +0000
commitc52d8661f109012bd53cda45b18721f544c0eddd (patch)
tree8f667e6f5c053399c915283ae97553b5e345fd23 /tools/aapt2/java/JavaClassGenerator.cpp
parentb513876655e04eb520d5d9b36558d3a8d3dd49e9 (diff)
Check for null in applyDefiningSharedLibraryUpdateLocked.
Handle two cases: 1) We haven't been able to create the shared library. The package manager still installs the package, but doesn't create the shared library. 2) When installing a shared library, we update shared lib dependency mappings before scanning. In the case that we're installing a new shared library, we will not have reference to that shared library in memory. This change adds a null check to account for such a scenario. bug: 119438703 bug: 119497540 Test: atest android.os.cts.StaticSharedLibsHostTests#testAppCanSeeOnlyLibrariesItDependOnFullMode Change-Id: I93d67f79ad0a58acd8cd4cb961cf82ada085821c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions