mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 20:06:29 +01:00
Prevent crash
This commit is contained in:
@@ -243,10 +243,10 @@ public class HtmlEx {
|
||||
int end) {
|
||||
List<Boolean> levels = new ArrayList<>();
|
||||
|
||||
int next;
|
||||
int next = -1;
|
||||
for (int i = start; i <= end; i = next) {
|
||||
next = TextUtils.indexOf(text, '\n', i, end);
|
||||
try {
|
||||
next = TextUtils.indexOf(text, '\n', i, end);
|
||||
if (next < 0) {
|
||||
next = end;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user