1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 01:36:55 +00:00

Prevent crash

This commit is contained in:
M66B 2019-03-12 10:13:24 +00:00
parent 9d31158dee
commit 475b7b492b

View file

@ -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) {