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

Commit 2b7e3f22 authored by Jian Zhou's avatar Jian Zhou Committed by jianzhou
Browse files

Settings: Fix SparseArray null pointer issue in monkey issues

SparseArray null pointer causes monkey test exception, add a
protect for this.

Change-Id: Iade3148a846962875f5f38c5d2bf5631d0d9ac42

Bug: 62685823
parent e990bf30
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -188,6 +188,10 @@ public abstract class AppStateAppOpsBridge extends AppStateBaseBridge {
     */
    private void loadPermissionsStates(SparseArray<ArrayMap<String, PermissionState>> entries) {
        // Load the packages that have been granted the permission specified in mPermission.
        if (entries == null) {
            return;
        }

        try {
            for (final UserHandle profile : mProfiles) {
                final int profileId = profile.getIdentifier();