diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java b/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java index 1471403b..18aa1875 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java @@ -463,7 +463,7 @@ public class NotificationsFragment extends SFragment implements } int end = notifications.size(); Notification last = notifications.get(end - 1); - if (last != null && !findNotification(newNotifications, last.id)) { + if (last != null && !findNotification(newNotifications, last.id) && newNotifications.size() > 0) { notifications.addAll(newNotifications); List newViewDatas = notifications.getPairedCopy() .subList(notifications.size() - newNotifications.size(),