Prevent crash

pull/180/head
M66B 5 years ago
parent be6cb71fb2
commit f5f56279b0

@ -1871,7 +1871,9 @@ public class MessageHelper {
MimePart part = imessage;
if (part.isMimeType("multipart/mixed")) {
Multipart mp = (Multipart) part.getContent();
Object content = part.getContent();
if (content instanceof Multipart) {
Multipart mp = (Multipart) content;
for (int i = 0; i < mp.getCount(); i++) {
BodyPart bp = mp.getBodyPart(i);
if (bp.isMimeType("multipart/signed") || bp.isMimeType("multipart/encrypted")) {
@ -1879,6 +1881,8 @@ public class MessageHelper {
break;
}
}
} else
Log.e("Mixed type=" + (content == null ? null : content.getClass().getName()));
}
if (part.isMimeType("multipart/signed")) {

Loading…
Cancel
Save