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

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

Fix NPE inside ItemInfo am: f24c614a

Change-Id: Iced5c546deb21a70aca057f4235fad787d2104fa
parents 23f879c3 f24c614a
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()