1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-04 02:28:18 +00:00

Fixed empty content types warning

This commit is contained in:
M66B 2020-04-06 15:11:10 +02:00
parent 5af5ffac2b
commit d7d9ffca2e

View file

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