Small fix

This commit is contained in:
M66B 2019-05-29 14:30:56 +02:00
parent 1dd91b878d
commit 11937d07b6
1 changed files with 2 additions and 1 deletions

View File

@ -127,7 +127,8 @@ public class ActivityEml extends ActivityBase {
result.parts = HtmlHelper.fromHtml(sb.toString());
result.html = parts.getHtml(context);
result.body = HtmlHelper.fromHtml(HtmlHelper.sanitize(context, result.html));
if (result.html != null)
result.body = HtmlHelper.fromHtml(HtmlHelper.sanitize(context, result.html));
ByteArrayOutputStream bos = new ByteArrayOutputStream();
mmessage.writeTo(bos);