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

Commit 50a87159 authored by Hyunyoung Song's avatar Hyunyoung Song Committed by Automerger Merge Worker
Browse files

Fix NPE inside ItemInfo am: f24c614a am: e28a06e5

Change-Id: Ic28a635f884e3e4bbdd9fddd5952064dc5d0db64
parents 33227219 e28a06e5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -248,6 +248,7 @@ public class ItemInfo {
        LauncherAtom.ItemInfo.Builder itemBuilder = LauncherAtom.ItemInfo.newBuilder();
        itemBuilder.setIsWork(user != Process.myUserHandle());
        ComponentName cn = getTargetComponent();
        if (cn == null) return itemBuilder.build();
        switch (itemType) {
            case ITEM_TYPE_APPLICATION:
                itemBuilder.setApplication(LauncherAtom.Application.newBuilder()