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

Commit d3bf9803 authored by Hyunyoung Song's avatar Hyunyoung Song
Browse files

ComponentName null check MUST proceed before creating ComponentKey.

Change-Id: I2460561b62d77d3f2f17dc2a7db765785b46a8c6
parent 4a4b49ff
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;
    }