1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 11:15:51 +00:00

Prevent crash

This commit is contained in:
M66B 2019-07-06 18:33:21 +02:00
parent 6e02eb9b07
commit 1cf32ef90e

View file

@ -742,7 +742,8 @@ class Core {
HtmlHelper.getPreview(body),
parts.getWarnings(message.warning));
fixAttachments(context, message.id, body);
if (!TextUtils.isEmpty(body))
fixAttachments(context, message.id, body);
}
private static void onAttachment(Context context, JSONArray jargs, EntityFolder folder, EntityMessage message, EntityOperation op, IMAPFolder ifolder) throws JSONException, MessagingException, IOException {
@ -1708,7 +1709,9 @@ class Core {
parts.getWarnings(message.warning));
Log.i(folder.name + " downloaded message id=" + message.id +
" size=" + message.size + "/" + (body == null ? null : body.length()));
fixAttachments(context, message.id, body);
if (!TextUtils.isEmpty(body))
fixAttachments(context, message.id, body);
}
}