summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2013-06-25 01:30:30 (GMT)
committerJorge Ruesga <jorge@ruesga.com>2013-06-25 01:30:30 (GMT)
commit6df860659097a6714652a9d6906d636150fdebc8 (patch)
tree6266e1a0e683909fdfe916f6b7bc9979be627310
parent21d44da75e7b0d135033bab2aeab10f42b94ca8e (diff)
downloadandroid_packages_apps_Trebuchet-6df860659097a6714652a9d6906d636150fdebc8.zip
android_packages_apps_Trebuchet-6df860659097a6714652a9d6906d636150fdebc8.tar.gz
android_packages_apps_Trebuchet-6df860659097a6714652a9d6906d636150fdebc8.tar.bz2
Trebuchet: Fix NPE
Change-Id: I89c6a233e3480362db004d361914083223f3cb72 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
-rw-r--r--src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
index 42485a6..9098d19 100644
--- a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
+++ b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
@@ -395,8 +395,10 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
String[] flattened = PreferencesProvider.Interface.Drawer.getHiddenApps().split("\\|");
for (String flat : flattened) {
ComponentName cmp = ComponentName.unflattenFromString(flat);
- mHiddenApps.add(cmp);
- mHiddenAppsPackages.add(cmp.getPackageName());
+ if (cmp != null) {
+ mHiddenApps.add(cmp);
+ mHiddenAppsPackages.add(cmp.getPackageName());
+ }
}