diff --git a/src/com/android/launcher3/icons/ShortcutCachingLogic.java b/src/com/android/launcher3/icons/ShortcutCachingLogic.java index bb7248fea7..17915394ae 100644 --- a/src/com/android/launcher3/icons/ShortcutCachingLogic.java +++ b/src/com/android/launcher3/icons/ShortcutCachingLogic.java @@ -107,7 +107,7 @@ public class ShortcutCachingLogic implements CachingLogic { try { return context.getSystemService(LauncherApps.class) .getShortcutIconDrawable(shortcutInfo, density); - } catch (SecurityException | IllegalStateException e) { + } catch (SecurityException | IllegalStateException | NullPointerException e) { Log.e(TAG, "Failed to get shortcut icon", e); return null; }