mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
dfaff06b6b
commit
76581cbfe6
|
@ -2201,11 +2201,12 @@ class Core {
|
|||
Log.i(folder.name + " inline downloaded message id=" + message.id +
|
||||
" size=" + message.size + "/" + (body == null ? null : body.length()));
|
||||
|
||||
if (!TextUtils.isEmpty(body))
|
||||
fixAttachments(context, message.id, body);
|
||||
|
||||
Long size = parts.getBodySize();
|
||||
if (TextUtils.isEmpty(body) && size != null && size > 0)
|
||||
reportEmptyMessage(context, account, istore);
|
||||
else
|
||||
fixAttachments(context, message.id, body);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2525,11 +2526,12 @@ class Core {
|
|||
Log.i(folder.name + " downloaded message id=" + message.id +
|
||||
" size=" + message.size + "/" + (body == null ? null : body.length()));
|
||||
|
||||
if (!TextUtils.isEmpty(body))
|
||||
fixAttachments(context, message.id, body);
|
||||
|
||||
Long size = parts.getBodySize();
|
||||
if (TextUtils.isEmpty(body) && size != null && size > 0)
|
||||
reportEmptyMessage(context, account, istore);
|
||||
else
|
||||
fixAttachments(context, message.id, body);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue