From 4d2fa936323dcc76710018c1f5a6bfd2a52a23a8 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 30 Jul 2023 10:38:10 +0200 Subject: [PATCH] Fix a crash when remote profiles is enabled --- .../fedilab/android/mastodon/helper/CrossActionHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/mastodon/helper/CrossActionHelper.java b/app/src/main/java/app/fedilab/android/mastodon/helper/CrossActionHelper.java index 949d0ccb1..49a4f1dfa 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/helper/CrossActionHelper.java +++ b/app/src/main/java/app/fedilab/android/mastodon/helper/CrossActionHelper.java @@ -493,7 +493,9 @@ public class CrossActionHelper { * Fetch and federate the remote status */ public static void fetchAccountInRemoteInstance(@NonNull Context context, String acct, String instance, Callback callback) { - + if (instance == null) { + return; + } MastodonSearchService mastodonSearchService = init(context, instance); new Thread(() -> { Call resultsCall = mastodonSearchService.search(null, acct, null, "accounts", null, null, null, null, null, null, 1);