Prevent crash

This commit is contained in:
M66B 2022-03-11 08:13:52 +01:00
parent 0d162c82ea
commit 5ab676b54c
1 changed files with 1 additions and 1 deletions

View File

@ -1346,7 +1346,7 @@ public class FragmentCompose extends FragmentBase {
outState.putParcelable("fair:pickUri", pickUri); outState.putParcelable("fair:pickUri", pickUri);
// Focus was lost at this point // Focus was lost at this point
outState.putInt("fair:selection", etBody.getSelectionStart()); outState.putInt("fair:selection", etBody == null ? 0 : etBody.getSelectionStart());
super.onSaveInstanceState(outState); super.onSaveInstanceState(outState);
} }