java.lang.ArrayIndexOutOfBoundsException: length=116; index=120 W/System.err:

Stack Overflow | Hasanaga | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    ArrayIndexOutOfBoundsException Error when Textview Append Spanned text

    Stack Overflow | 6 months ago | Hasanaga
    java.lang.ArrayIndexOutOfBoundsException: length=116; index=120 W/System.err:

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      length=116; index=120 W/System.err:

      at android.text.MeasuredText.addStyleRun()
    2. Android Platform
      TextView.append
      1. android.text.MeasuredText.addStyleRun(MeasuredText.java:168)
      2. android.text.MeasuredText.addStyleRun(MeasuredText.java:204)
      3. android.text.StaticLayout.generate(StaticLayout.java:281)
      4. android.text.DynamicLayout.reflow(DynamicLayout.java:284)
      5. android.text.DynamicLayout.access$000(DynamicLayout.java:35)
      6. android.text.DynamicLayout$ChangeWatcher.reflow(DynamicLayout.java:621)
      7. android.text.DynamicLayout$ChangeWatcher.onTextChanged(DynamicLayout.java:631)
      8. android.text.SpannableStringBuilder.sendTextChanged(SpannableStringBuilder.java:962)
      9. android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:496)
      10. android.text.SpannableStringBuilder.append(SpannableStringBuilder.java:253)
      11. android.text.SpannableStringBuilder.append(SpannableStringBuilder.java:30)
      12. android.widget.TextView.append(TextView.java:3131)
      13. android.widget.TextView.append(TextView.java:3118)
      13 frames