From 2f11eaf315cf120dd2e7da1537dddc99febd25bb Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 2 Feb 2024 18:44:23 +0100 Subject: [PATCH] Fix a crash with profiles --- .../mastodon/ui/fragment/timeline/FragmentMastodonTimeline.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/fragment/timeline/FragmentMastodonTimeline.java b/app/src/main/java/app/fedilab/android/mastodon/ui/fragment/timeline/FragmentMastodonTimeline.java index 0d201729..24fa9392 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/fragment/timeline/FragmentMastodonTimeline.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/fragment/timeline/FragmentMastodonTimeline.java @@ -432,7 +432,7 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter. } //When visiting a profile without being authenticated if (checkRemotely) { - String[] acctArray = accountTimeline.acct.split("@"); + String[] acctArray = accountTimeline!=null?accountTimeline.acct.split("@"):new String[]{}; if (acctArray.length > 1) { remoteInstance = acctArray[1]; }