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

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

Fix NPE inside ItemInfo

Bug: 153423464
Test: builds
Change-Id: Ieca836d13ea6535a8016bec2c150c793a41db3ff
parent 884f8f21
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()