diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/fragment/timeline/FragmentMastodonAccount.java b/app/src/main/java/app/fedilab/android/mastodon/ui/fragment/timeline/FragmentMastodonAccount.java index d2385b1d..67ae36d5 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/fragment/timeline/FragmentMastodonAccount.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/fragment/timeline/FragmentMastodonAccount.java @@ -263,8 +263,11 @@ public class FragmentMastodonAccount extends Fragment { .observe(getViewLifecycleOwner(), relationShips -> { if (relationShips != null) { for (RelationShip relationShip : relationShips) { + if(relationShip == null || relationShip.id == null ) { + continue; + } for (Account account : accounts) { - if (account.id.compareToIgnoreCase(relationShip.id) == 0) { + if (account != null && account.id != null && account.id.compareToIgnoreCase(relationShip.id) == 0) { account.relationShip = relationShip; } }