mirror of https://github.com/M66B/FairEmail.git
Added fail-safe
This commit is contained in:
parent
b1825316c3
commit
94ce9eabd4
|
@ -2246,11 +2246,12 @@ public class HtmlHelper {
|
||||||
if (dashed) {
|
if (dashed) {
|
||||||
LineSpan[] lines = ssb.getSpans(0, ssb.length(), LineSpan.class);
|
LineSpan[] lines = ssb.getSpans(0, ssb.length(), LineSpan.class);
|
||||||
int last = -1;
|
int last = -1;
|
||||||
for (LineSpan line : lines) {
|
if (lines != null)
|
||||||
int e = ssb.getSpanEnd(line);
|
for (LineSpan line : lines) {
|
||||||
if (e > last)
|
int e = ssb.getSpanEnd(line);
|
||||||
last = e;
|
if (e > last)
|
||||||
}
|
last = e;
|
||||||
|
}
|
||||||
if (last >= 0) {
|
if (last >= 0) {
|
||||||
boolean blank = true;
|
boolean blank = true;
|
||||||
for (int i = last; i < ssb.length(); i++) {
|
for (int i = last; i < ssb.length(); i++) {
|
||||||
|
|
Loading…
Reference in New Issue