Prevent crash

This commit is contained in:
M66B 2021-09-29 18:52:16 +02:00
parent 20a5550fa6
commit 96f3a539d6
1 changed files with 3 additions and 0 deletions

View File

@ -2351,6 +2351,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
}
private TupleMessageEx getMessage(int pos) {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return null;
if (selectionTracker != null && selectionTracker.hasSelection())
return null;