mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-03 23:56:07 +02:00
Prevent crash
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user