commit | 471817faf662b0a258409922bed0aca216e4f266 | [log] [tgz] |
---|---|---|
author | Dario Freni <dariofreni@google.com> | Mon Feb 04 19:54:29 2019 +0000 |
committer | Todd Kennedy <toddke@google.com> | Mon Feb 04 16:45:15 2019 -0800 |
tree | 768746a2b8ece9eaaad7e875769830024c776cdf | |
parent | 49b56314caba78eb5220715aa43a3811734e9ffc [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