From 1ac365befabf3bf718759eebc9e5f3e53d9389b5 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 24 Jun 2022 18:05:51 +0200 Subject: [PATCH] small fixes --- .../android/ui/fragment/timeline/FragmentMastodonTimeline.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/ui/fragment/timeline/FragmentMastodonTimeline.java b/app/src/main/java/app/fedilab/android/ui/fragment/timeline/FragmentMastodonTimeline.java index 8e6b8b1a..9c652458 100644 --- a/app/src/main/java/app/fedilab/android/ui/fragment/timeline/FragmentMastodonTimeline.java +++ b/app/src/main/java/app/fedilab/android/ui/fragment/timeline/FragmentMastodonTimeline.java @@ -568,7 +568,7 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter. */ private void route(DIRECTION direction, boolean fetchingMissing) { new Thread(() -> { - if (binding == null || !isAdded()) { + if (binding == null || getActivity() == null || !isAdded()) { return; } QuickLoad quickLoad = new QuickLoad(requireActivity()).getSavedValue(MainActivity.currentUserID, MainActivity.currentInstance, timelineType, ident);