mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-01 02:21:37 +01:00
Catch exceptions on get CID
This commit is contained in:
@@ -989,7 +989,14 @@ public class MessageHelper {
|
||||
Log.w(ex);
|
||||
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.name = apart.filename;
|
||||
|
||||
Reference in New Issue
Block a user