mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-01 03:45:10 +00:00
Catch exceptions on get CID
This commit is contained in:
parent
e586370fb8
commit
a86a92d7b7
1 changed files with 8 additions and 1 deletions
|
@ -989,7 +989,14 @@ public class MessageHelper {
|
||||||
Log.w(ex);
|
Log.w(ex);
|
||||||
ct = new ContentType("application/octet-stream");
|
ct = new ContentType("application/octet-stream");
|
||||||
}
|
}
|
||||||
String[] cid = apart.part.getHeader("Content-ID");
|
|
||||||
|
String[] cid = null;
|
||||||
|
try {
|
||||||
|
cid = apart.part.getHeader("Content-ID");
|
||||||
|
} catch (MessagingException ex) {
|
||||||
|
Log.w(ex);
|
||||||
|
parts.warnings.add(Helper.formatThrowable(ex));
|
||||||
|
}
|
||||||
|
|
||||||
apart.attachment = new EntityAttachment();
|
apart.attachment = new EntityAttachment();
|
||||||
apart.attachment.name = apart.filename;
|
apart.attachment.name = apart.filename;
|
||||||
|
|
Loading…
Reference in a new issue