mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
0e6bd5691c
commit
7153a968de
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue