Merge "ADD NPE check before shortcut key creation." into ub-launcher3-rvc-dev

This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2020-06-11 23:00:05 +00:00
commit 368621a4bb
1 file changed
+1
+1
View File
@@ -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);