From 8906c0a77741dc3ec16a02860734367b8dfd3f3e Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 28 Oct 2019 08:27:14 +0100 Subject: [PATCH] Ignore external missing attachments --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 2031568213..aa2d00d2c7 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -2469,7 +2469,11 @@ public class FragmentCompose extends FragmentBase { ArrayList uris = args.getParcelableArrayList("attachments"); if (uris != null) for (Uri uri : uris) - addAttachment(context, data.draft.id, uri, false); + try { + addAttachment(context, data.draft.id, uri, false); + } catch (IOException ex) { + Log.e(ex); + } } else if (ref != null && ("reply".equals(action) || "reply_all".equals(action) || "forward".equals(action) || "editasnew".equals(action))) {