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:
parent
5af5ffac2b
commit
d7d9ffca2e
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue