diff options
author | Dario Freni <dariofreni@google.com> | 2019-02-04 19:54:29 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-02-05 04:23:18 +0000 |
commit | 55167dd5378d2b9294cd8872bd09785c5124342a (patch) | |
tree | be7a423a61f3ea3e3c6bca73d51cbc7950c10bd7 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 5577f1b98f12e403acaaaae18a4ee47a481d823d (diff) |
Don't throw a runtime exception in getPackageInfo.
If the input is invalid, we need to just return null, otherwise we'll
make PackageManager crash.
Bug: 123676932
Fix: 123878869
Test: used a small app to query the API, reproduce the bug and
verified that the new code fixes it.
Change-Id: Icefb108cc95ec01e36021a5259c59dabdc24c4d6
(cherry picked from commit 471817faf662b0a258409922bed0aca216e4f266)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions