1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-01 17:26:12 +00:00

Prevent NPE

This commit is contained in:
M66B 2024-05-23 10:34:00 +02:00
parent 44636c9d03
commit 65e214fc47

View file

@ -2673,6 +2673,9 @@ public class FragmentCompose extends FragmentBase {
@Override @Override
protected void onExecuted(Bundle args, String completion) { protected void onExecuted(Bundle args, String completion) {
if (completion == null)
return;
Editable edit = etBody.getText(); Editable edit = etBody.getText();
int start = etBody.getSelectionStart(); int start = etBody.getSelectionStart();
int end = etBody.getSelectionEnd(); int end = etBody.getSelectionEnd();