ComponentName null check MUST proceed before creating ComponentKey.

Change-Id: I2460561b62d77d3f2f17dc2a7db765785b46a8c6
This commit is contained in:
Hyunyoung Song
2016-08-29 14:43:53 -07:00
parent 4a4b49ff34
commit d3bf9803f5
+4
View File
@@ -4170,6 +4170,10 @@ public class Launcher extends Activity
return Collections.EMPTY_LIST;
}
ComponentName component = info.getTargetComponent();
if (component == null) {
return Collections.EMPTY_LIST;
}
List<String> ids = mDeepShortcutMap.get(new ComponentKey(component, info.user));
return ids == null ? Collections.EMPTY_LIST : ids;
}