summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRhed Jao <rhedjao@google.com>2020-01-16 18:38:17 +0800
committerRhed Jao <rhedjao@google.com>2020-01-20 09:52:40 +0800
commit1fc8b36cf38e2632db68e5d15acd3ff83d1f54aa (patch)
tree0c8ebaae9d67f4d34d26af1d4cabb6d62c6bad74 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent805b26acf04867a4e5e7d8e6bc763e089ab73c8e (diff)
Fixed NPE in package installer session.
We updated staged sessions to activation failed state when they aren't in terminal state, and device received ota and reboot. This happend before the StagingManager resumes the sessions when the whole set of parent+child sessions have been restored. A parent session probably cannot find the child session, and a null exception could happen. In this change, we do not destroy child sessions before we destroy the parent session. We only destroy a child session directly if we are sure that its parent session doesn't exist. Bug: 147651771 Test: StagedInstallTest Change-Id: Iac6489a04df35f851aa18a91e1dde2d73928b8ec
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions