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

Commit 22f90a09 authored by Joshua Tsuji's avatar Joshua Tsuji
Browse files

Fix bubbles crash when a null person is added to a notif.

Test: Post a notif from an old Notify apk
Change-Id: Ibc43d0652e46685a1dd91284b6a2add3f40a3862
parent 6a06d9f8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -186,7 +186,11 @@ public class BubbleExperimentConfig {
        // Use the icon of the person if available
        List<Person> personList = getPeopleFromNotification(entry);
        if (personList.size() > 0) {
            icon = personList.get(0).getIcon();
            final Person person = personList.get(0);

            if (person != null) {
                icon = person.getIcon();
            }
        }
        if (icon == null) {
            icon = notification.getLargeIcon() != null