From f90e0db428d2f1bcff9afd92fd9b8fa9c75c5c49 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 25 May 2020 18:57:59 +0200 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index c7cc9f049d..034cad9f89 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -1588,7 +1588,8 @@ public class HtmlHelper { else ssb.insert(i + 1, "> "); - ssb.insert(start, ssb.charAt(start) == '>' ? ">" : "> "); + if (start < ssb.length()) + ssb.insert(start, ssb.charAt(start) == '>' ? ">" : "> "); } for (BulletSpan span : ssb.getSpans(0, ssb.length(), BulletSpan.class)) {