mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-18 02:29:32 +01:00
Fixed empty content types warning
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user