Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adbe9b60 authored by Samuel Fufa's avatar Samuel Fufa
Browse files

ADD NPE check before shortcut key creation.

Bug: 156871815
Change-Id: I88132a51f80062eaa76da5838d20c5fe93224635
parent 3b18d41e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -606,6 +606,7 @@ public final class Utilities {
                outObj[0] = activityInfo;
                return activityInfo.getFullResIcon(appState.getIconCache());
            }
            if (info.getIntent() == null || info.getIntent().getPackage() == null) return null;
            List<ShortcutInfo> si = ShortcutKey.fromItemInfo(info)
                    .buildRequest(launcher)
                    .query(ShortcutRequest.ALL);