Fix a crash

This commit is contained in:
Thomas 2022-06-06 11:06:38 +02:00
parent 12e352c774
commit 5fcb3e12ae
1 changed files with 1 additions and 1 deletions

View File

@ -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) {