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

Commit 4bd8a2fb authored by Beverly's avatar Beverly
Browse files

Don't show a toast icon if app.info is null

To avoid NPE if appEntry.info doesn't exist yet.

Test: manual
Fixes: 183791632
Change-Id: Ie3933c20d590daac940bd23e134f9b3d1f895e39
parent d19254d3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -233,7 +233,8 @@ public class SystemUIToast implements ToastPlugin.Toast {
            return null;
        }
        final AppEntry appEntry = appState.getEntry(packageName, userId);
        if (!ApplicationsState.FILTER_DOWNLOADED_AND_LAUNCHER.filterApp(appEntry)) {
        if (appEntry.info == null
                || !ApplicationsState.FILTER_DOWNLOADED_AND_LAUNCHER.filterApp(appEntry)) {
            return null;
        }