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

Commit e8d8d3dc authored by Stefan Dierauf's avatar Stefan Dierauf Committed by Beverly Tai
Browse files

Check appEntry is not null before dereferencing it

Bug: 183791632
Test: make

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