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

Commit 6732830b authored by Patrick Baumann's avatar Patrick Baumann
Browse files

Another setting.pkg null check

We have another case of setting.pkg being accessed without a null check.
This change fixes that error.

Fixes: 159372907
Test: atest AppEnumerationTests AppsFilterTest
Change-Id: I1b60471a8f019cba8f4155107d56838a6fc73c8c
parent 8d139f6a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -817,7 +817,7 @@ public class AppsFilter {
                }
            }

            if (!setting.pkg.getProtectedBroadcasts().isEmpty()) {
            if (setting.pkg != null && !setting.pkg.getProtectedBroadcasts().isEmpty()) {
                final String removingPackageName = setting.pkg.getPackageName();
                final Set<String> protectedBroadcasts = mProtectedBroadcasts;
                mProtectedBroadcasts = collectProtectedBroadcasts(settings, removingPackageName);