diff options
author | Jackal Guo <jackalguo@google.com> | 2020-12-10 09:54:54 +0800 |
---|---|---|
committer | Jackal Guo <jackalguo@google.com> | 2020-12-10 09:54:54 +0800 |
commit | f958fee253fca7524ece7423a5769fe99081272f (patch) | |
tree | e01438a0b685daf7906d68615d1bb3224ca047ec /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | c43d935c42a55f7498a89d52a7df8592e7f06477 (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 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions