From 5fcb3e12ae9ef2ff433f0d3bb8b9656676a69afc Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 6 Jun 2022 11:06:38 +0200 Subject: [PATCH] Fix a crash --- .../ui/fragment/timeline/FragmentMastodonNotification.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/ui/fragment/timeline/FragmentMastodonNotification.java b/app/src/main/java/app/fedilab/android/ui/fragment/timeline/FragmentMastodonNotification.java index 1fc6b6f2c..ada5962e9 100644 --- a/app/src/main/java/app/fedilab/android/ui/fragment/timeline/FragmentMastodonNotification.java +++ b/app/src/main/java/app/fedilab/android/ui/fragment/timeline/FragmentMastodonNotification.java @@ -248,7 +248,7 @@ public class FragmentMastodonNotification extends Fragment { if (i != refPosition) { if (notifications.get(i).type.equals(notifications.get(refPosition).type) && (notifications.get(i).type.equals("favourite") || notifications.get(i).type.equals("reblog")) - && notifications.get(i).status.id.equals(notifications.get(refPosition).status.id) + && notifications.get(i).status != null && notifications.get(refPosition).status != null && notifications.get(i).status.id.equals(notifications.get(refPosition).status.id) ) { if (notificationList.size() > 0) { if (notificationList.get(notificationList.size() - 1).relatedNotifications == null) {