Prevent crash

This commit is contained in:
M66B 2022-11-14 09:14:05 +01:00
parent 0e6bd5691c
commit 7153a968de
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}