mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
8937c77ab3
commit
50c9d050f6
|
@ -2189,6 +2189,8 @@ public class FragmentCompose extends FragmentBase {
|
|||
|
||||
for (Uri uri : uris) {
|
||||
EntityAttachment attachment = addAttachment(context, id, uri, image, resize, privacy);
|
||||
if (attachment == null)
|
||||
continue;
|
||||
if (!image)
|
||||
continue;
|
||||
|
||||
|
@ -3089,6 +3091,9 @@ public class FragmentCompose extends FragmentBase {
|
|||
db.beginTransaction();
|
||||
|
||||
EntityMessage draft = db.message().getMessage(id);
|
||||
if (draft == null)
|
||||
return null;
|
||||
|
||||
Log.i("Attaching to id=" + id);
|
||||
|
||||
attachment.message = draft.id;
|
||||
|
|
Loading…
Reference in New Issue