From 11937d07b6e9af131938490b148ba1930cb706b3 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 29 May 2019 14:30:56 +0200 Subject: [PATCH] Small fix --- app/src/main/java/eu/faircode/email/ActivityEml.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityEml.java b/app/src/main/java/eu/faircode/email/ActivityEml.java index fd4b2aa593..7316fa6078 100644 --- a/app/src/main/java/eu/faircode/email/ActivityEml.java +++ b/app/src/main/java/eu/faircode/email/ActivityEml.java @@ -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);