prevent crash

pull/177/head
M66B 6 years ago
parent f7d8ad3253
commit 19ef07ecb4

@ -3853,6 +3853,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
Context context = getContext(); Context context = getContext();
if (context == null) if (context == null)
return; return;
if (getView() == null)
return;
if (!getViewLifecycleOwner().getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) if (!getViewLifecycleOwner().getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return; return;

Loading…
Cancel
Save