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

Commit 78c05f97 authored by Benjamin Franz's avatar Benjamin Franz
Browse files

Check for null packages in setLockTaskPackages

Bug: 20416611
Change-Id: Ibbadc952da29a34de0cf02408093b7bfc01f8779
parent 0d703f74
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -5626,9 +5626,11 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
            if (packages != null) {
                for (int j = 0; j < packages.length; j++) {
                    String pkg = packages[j];
                    if (pkg != null) {
                        policy.mLockTaskPackages.add(pkg);
                    }
                }
            }

            // Store the settings persistently.
            saveSettingsLocked(userHandle);