summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJackal Guo <jackalguo@google.com>2020-12-10 09:54:54 +0800
committerJackal Guo <jackalguo@google.com>2020-12-10 09:54:54 +0800
commitf958fee253fca7524ece7423a5769fe99081272f (patch)
treee01438a0b685daf7906d68615d1bb3224ca047ec /tools/aapt2/java/JavaClassGenerator_test.cpp
parentc43d935c42a55f7498a89d52a7df8592e7f06477 (diff)
Fix system server crash during movePackage
After reducing package parsing times, we use cached PackageLite instead of parsing on demand. Therefore, this cached PackageLite shouldn't be null in normal case. Since movePackage flow doesn't have a valid PackageLite, the NPE results in system server crash. Parse and cache PackageLite for movePackage case, and add null check to avoid the crash. Bug: 175148169 Test: atest AdoptableHostTest Change-Id: I3e54adc2f3b5f87ea6a6f3109aa138f3c93dcfd2
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions