summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-rw-r--r--services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
index c2e8ccc..8486705 100644
--- a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
+++ b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
@@ -5664,7 +5664,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
if (packages != null) {
for (int j = 0; j < packages.length; j++) {
String pkg = packages[j];
- policy.mLockTaskPackages.add(pkg);
+ if (pkg != null) {
+ policy.mLockTaskPackages.add(pkg);
+ }
}
}