diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2013-06-25 03:30:30 +0200 |
---|---|---|
committer | Jorge Ruesga <jorge@ruesga.com> | 2013-06-25 03:30:30 +0200 |
commit | 6df860659097a6714652a9d6906d636150fdebc8 (patch) | |
tree | 6266e1a0e683909fdfe916f6b7bc9979be627310 | |
parent | 21d44da75e7b0d135033bab2aeab10f42b94ca8e (diff) | |
download | packages_apps_trebuchet-6df860659097a6714652a9d6906d636150fdebc8.zip packages_apps_trebuchet-6df860659097a6714652a9d6906d636150fdebc8.tar.gz 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.java | 6 |
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()); + } } |