summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author Joanne Chung <joannechung@google.com> 2023-09-04 15:39:09 +0000
committer Joanne Chung <joannechung@google.com> 2023-09-04 15:39:09 +0000
commit178352cfeeba12a3b71b54708334a69d6281b5b4 (patch)
tree9fc65eb893972d2aebd485d1f7a71920d1e28c13 /libs/androidfw/Util.cpp
parent0283bc86e7ed879a8aed5addaf4a344aea961649 (diff)
Catch NPE when reportInstallationStats
The scan result is null for installExistingPackageAsUser(), becuse it is installing a package that already exists, there is no scanning or parsing involved. We don't handle this case before and catch the exception temporary, this change also catch the NPE here. There is a follow up bug to handle it correctly. Bug: 298693819 Test: ManagedProfileProvisioningCrossProfileAppsTest# newlyProvisionedManagedProfile_requiredCrossProfileAppsArePresent Change-Id: I07d5140785b700a0e9934a0150f709c234dfe0f7
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions