mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
d90d25d25f
commit
adf38d8d93
|
@ -2336,7 +2336,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
DB db = DB.getInstance(context);
|
||||
|
||||
EntityMessage draft = db.message().getMessage(id);
|
||||
if (!draft.content)
|
||||
if (draft == null || !draft.content)
|
||||
return null;
|
||||
|
||||
List<EntityAttachment> attachments = db.attachment().getAttachments(id);
|
||||
|
|
Loading…
Reference in New Issue