diff --git a/src/android/patches/JellyBeanSpanFixTextView.java b/src/android/patches/JellyBeanSpanFixTextView.java index 4ed6c172e..b89d07e05 100644 --- a/src/android/patches/JellyBeanSpanFixTextView.java +++ b/src/android/patches/JellyBeanSpanFixTextView.java @@ -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); }