mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 10:19:33 +02:00
fixed possible IOOBE
This commit is contained in:
parent
17dbf622f4
commit
3d7577f889
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ public class JellyBeanSpanFixTextView extends TextView {
|
|||
|
||||
for (Object span : spans) {
|
||||
int spanStart = builder.getSpanStart(span);
|
||||
if (isNotSpace(builder, spanStart - 1)) {
|
||||
if (spanStart > 0 && isNotSpace(builder, spanStart - 1)) {
|
||||
builder.insert(spanStart, " ");
|
||||
spansWithSpacesBefore.add(span);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue