diff options
author | Todd Kennedy <toddke@google.com> | 2020-11-24 14:02:35 -0800 |
---|---|---|
committer | Todd Kennedy <toddke@google.com> | 2020-11-24 14:02:35 -0800 |
commit | bc7c4ed0ba503fb3855d001b1de1247f79affcb7 (patch) | |
tree | c8d7336aa403685626a947390ae367f983bb5683 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | c8cc78445419e802fcc6dac9152366cf62e5dc01 (diff) |
Fix NPE
Reported by zezeozue@; if no package defines an application
<property> tag, getProperty() was throwing an NPE within the
package manager service.
NOTE: There's now a CTS test to ensure this works. However, it's
not sufficient. As soon as there's a single system application
that defines an application <property> tag, the test will
no longer catch the condition. We need to re-write the CTS
test as a Package Manager Service unit test and verity the
behaviour outside of the running service.
Bug: 169258655
Test: atest CtsContentTestCases:PackageManagerGetPropertyTest#testPackageRemoval
Change-Id: I117272b9b831061b9e915e0eb310d809b3afca2f
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions