Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 374a7d70 authored by Jay Thomas Sullivan's avatar Jay Thomas Sullivan
Browse files

Fix null handling of getPackagesForOps

This method's "ops" argument is documented as null being an acceptable
value:

    @param ops The set of operations you are interested in, or null if
    you want all of them.

However, passing null in fact always leads to a NullPointerException,
and so the "if you want all of them" functionality is effectively
uninvocable.

This commit allows null to be passed, resulting in behavior that matches
the documentation.

Fix: 182472424
Test: atest RuntimePermissionsAppOpTrackingTest#testGetAllPackagesForAllAppOps
Change-Id: Ieba1f401aba6f5607e89fa8b932c66ddf6b73ad4
parent 94aa4944
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment