fix: check if status.account is null before accessing it's id

Fixes #625
This commit is contained in:
LucasGGamerM
2025-05-16 05:29:43 -03:00
parent 889762f667
commit 732a0f9b4c

View File

@@ -125,7 +125,7 @@ public class NotificationsListFragment extends BaseStatusListFragment<Notificati
NotificationHeaderStatusDisplayItem titleItem;
Account self=AccountSessionManager.get(accountID).self;
if(n.type==Notification.Type.MENTION || n.type==Notification.Type.STATUS
|| (n.type==Notification.Type.REBLOG && !n.status.account.id.equals(self.id))){ // Iceshrimp quote
|| (n.type==Notification.Type.REBLOG && n.status.account != null && !n.status.account.id.equals(self.id))){ // Iceshrimp quote
titleItem=null;
}else{
titleItem=new NotificationHeaderStatusDisplayItem(n.id, this, n, accountID);