prevent crash

This commit is contained in:
M66B 2020-03-24 13:36:06 +01:00
parent f7d8ad3253
commit 19ef07ecb4
1 changed files with 2 additions and 0 deletions

View File

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