summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/popup/SystemShortcut.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher3/popup/SystemShortcut.java')
-rw-r--r--src/com/android/launcher3/popup/SystemShortcut.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/launcher3/popup/SystemShortcut.java b/src/com/android/launcher3/popup/SystemShortcut.java
index 563f3b3c6..78bd81b46 100644
--- a/src/com/android/launcher3/popup/SystemShortcut.java
+++ b/src/com/android/launcher3/popup/SystemShortcut.java
@@ -131,6 +131,7 @@ public abstract class SystemShortcut<T extends BaseDraggingActivity> extends Ite
@Override
public View.OnClickListener getOnClickListener(final Launcher launcher,
final ItemInfo itemInfo) {
+ if (itemInfo.getTargetComponent() == null) return null;
final List<WidgetItem> widgets =
launcher.getPopupDataProvider().getWidgetsForPackageUser(new PackageUserKey(
itemInfo.getTargetComponent().getPackageName(), itemInfo.user));