Fix a crash with profiles

This commit is contained in:
Thomas 2024-02-02 18:44:23 +01:00
parent 096dc6e98c
commit 2f11eaf315
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}