summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas <tschneider.ac@gmail.com>2023-03-15 09:27:27 +0100
committerThomas <tschneider.ac@gmail.com>2023-03-15 09:27:27 +0100
commitd3c44489f34d488a304c6bf5dd60b0a3b81d440f (patch)
tree5398cdb8ef02425170d951dd6bba4408ac98dedf
parent739183de9ced12f645aa00885488553412393465 (diff)
Fix a crash with search/directory
-rw-r--r--app/src/main/java/app/fedilab/android/mastodon/ui/fragment/timeline/FragmentMastodonAccount.java2
1 files changed, 1 insertions, 1 deletions
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 309510d4f..3acf80e2a 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
@@ -141,7 +141,7 @@ public class FragmentMastodonAccount extends Fragment {
fetchAccount(firstLoad, remoteAccountId);
}
} else {
- fetchAccount(firstLoad, accountTimeline.id);
+ fetchAccount(firstLoad, accountTimeline != null ? accountTimeline.id : null);
}
}