Fixed empty content types warning

pull/178/head
M66B 5 years ago
parent 5af5ffac2b
commit d7d9ffca2e

@ -1874,9 +1874,10 @@ public class MessageHelper {
ContentType contentType;
try {
String c = part.getContentType();
contentType = new ContentType(c == null ? "" : c);
contentType = new ContentType(
TextUtils.isEmpty(c) ? "application/octet-stream" : c);
} catch (ParseException ex) {
Log.w(ex);
Log.e(ex);
parts.warnings.add(Log.formatThrowable(ex, false));
if (part instanceof MimeMessage)

Loading…
Cancel
Save