diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 23f23b5ce2..2b34beb440 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -3853,6 +3853,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. Context context = getContext(); if (context == null) return; + if (getView() == null) + return; if (!getViewLifecycleOwner().getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) return;