Skip to content
Commit ff9a0183 authored by Lee Shombert's avatar Lee Shombert
Browse files

Test for null package in isEnabledAndMatches()

Bug: 188174037

Avoid an NPE is isEnabledAndMatches() by returning false if no package
is found matching the component name.

This does not address the more general problem uncovered by the bug,
which is that a thread that has multiple calls into PM on the stack
might end up executing with different snapshots.

Test: atest
 * CtsContentTestCases
Change-Id: Ib4e929a62edf3393e0177f5d85c9b3fe1e0697d8
parent f5098669
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment