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

Unverified Commit 8d75b44c authored by Alexander Martinz's avatar Alexander Martinz Committed by Kevin F. Haggerty
Browse files

logging: prevent NPE at logDeepShortcutsOpen



getLaunchProviderRecursive(View) can return null.

Check if provider is null before using it.

Change-Id: I8cd157ba315e1dcc1fed428e0474b55b774bbd2f
Signed-off-by: Alexander Martinz's avatarAlexander Martinz <amartinz@shiftphones.com>
parent 0c5fee18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -367,7 +367,7 @@ public class UserEventDispatcher {

    public void logDeepShortcutsOpen(View icon) {
        LogContainerProvider provider = getLaunchProviderRecursive(icon);
        if (icon == null || !(icon.getTag() instanceof ItemInfo)) {
        if (icon == null || !(icon.getTag() instanceof ItemInfo) || provider == null) {
            return;
        }
        ItemInfo info = (ItemInfo) icon.getTag();