Prevent crash

This commit is contained in:
M66B 2019-03-27 11:32:49 +00:00
parent d90d25d25f
commit adf38d8d93
1 changed files with 1 additions and 1 deletions

View File

@ -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);