fix: NPE in HeaderStatusDisplayItem when clicking on a "User followed you" avatar header in notifications fragment

This commit is contained in:
LucasGGamerM
2023-02-25 20:58:10 -03:00
parent 529c1e2b07
commit f836361644

View File

@@ -441,7 +441,7 @@ public class HeaderStatusDisplayItem extends StatusDisplayItem{
return;
}
Bundle args=new Bundle();
if(item.status.reloadWhenClicked){
if(item.status != null && item.status.reloadWhenClicked){
UiUtils.lookupAccount(v.getContext(), item.status.account, item.accountID, null, account -> {
args.putString("account", item.accountID);
args.putParcelable("profileAccount", Parcels.wrap(account));