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-02-03 11:19:17 +0800
commit692e12085835925d4e34607032e4f290502394fc (patch)
treef31624ff87f58bddf8da6f2e5beae3f5b4541366 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent9b87773b6007f7f8dc7fa3697823f4ca5e3e16ee (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 Merged-in: Iac6489a04df35f851aa18a91e1dde2d73928b8ec (cherry picked from commit 1fc8b36cf38e2632db68e5d15acd3ff83d1f54aa)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions