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

Stack Overflow | Hasanaga | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ArrayIndexOutOfBoundsException Error when Textview Append Spanned text

    Stack Overflow | 5 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