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

Commit aa7b4ce5 authored by Mady Mellor's avatar Mady Mellor
Browse files

Fix NPE

Test: treehugger
Bug: 158037445
Change-Id: I2bdd3f926ea55ee3074036655c17c595b1e1ac97
parent 4b389892
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -285,7 +285,10 @@ class BubbleOverflowAdapter extends RecyclerView.Adapter<BubbleOverflowAdapter.V
                    }
                });

        ShortcutInfo info = b.getEntry().getRanking().getShortcutInfo();
        // If the bubble was persisted, the entry is null but it should have shortcut info
        ShortcutInfo info = b.getEntry() == null
                ? b.getShortcutInfo()
                : b.getEntry().getRanking().getShortcutInfo();
        if (info == null) {
            Log.d(TAG, "ShortcutInfo required to bubble but none found for " + b);
        } else {