diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 7fdf2b1853..fbadc5b12f 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -290,7 +290,8 @@ public class HtmlHelper { if (e.isBlock() && !e.hasText() && e.select("img").size() == 0) e.remove(); - return document.body().html(); + Element body = document.body(); + return (body == null ? "" : body.html()); } static Drawable decodeImage(String source, Context context, long id, boolean show) {