Catch exceptions on get CID

pull/156/head
M66B 5 years ago
parent e586370fb8
commit a86a92d7b7

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

Loading…
Cancel
Save