java.lang.IndexOutOfBoundsException: setSpan (0 ... 4) ends beyond length 2

GitHub | teolemon | 4 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    jose swift - Google+

    google.com | 1 year ago
    java.lang.IndexOutOfBoundsException: setSpan (124 ... 256) ends beyond length 132
  2. 0

    java.lang.IndexOutOfBoundsException: setSpan

    GitHub | 4 years ago | Grunthos
    java.lang.IndexOutOfBoundsException: setSpan (4 ... 16) ends beyond length 15
  3. 0

    Xiaomi Redmi 1S - Обсуждение - 4PDA

    4pda.ru | 1 year ago
    java.lang.IndexOutOfBoundsException: setSpan (39 ... 98) ends beyond length 59
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Ted Bey - Google+

    google.com | 1 year ago
    java.lang.IndexOutOfBoundsException: setSpan (0 ... 6) ends beyond length 5
  6. 0

    Internal Android Crash in Xamarin around SetSpan

    Stack Overflow | 2 months ago | Jared
    java.lang.IndexOutOfBoundsException: setSpan (13 ... 31) ends beyond length 18

  1. Riyaz 2 times, last 4 months ago
  2. MyInnos 6 times, last 11 months ago
  3. Priyank 1 times, last 1 year ago
5 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IndexOutOfBoundsException

    setSpan (0 ... 4) ends beyond length 2

    at android.text.SpannableStringBuilder.checkRange()
  2. Android Platform
    ActivityThread.main
    1. android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1090)
    2. android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:665)
    3. android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:658)
    4. android.widget.TextView.setSpan_internal(TextView.java:9683)
    5. android.widget.Editor$SuggestionsPopupWindow.onItemClick(Editor.java:3086)
    6. android.widget.AdapterView.performItemClick(AdapterView.java:310)
    7. android.widget.AbsListView.performItemClick(AbsListView.java:1145)
    8. android.widget.AbsListView$PerformClick.run(AbsListView.java:3066)
    9. android.widget.AbsListView$3.run(AbsListView.java:3903)
    10. android.os.Handler.handleCallback(Handler.java:739)
    11. android.os.Handler.dispatchMessage(Handler.java:95)
    12. android.os.Looper.loop(Looper.java:148)
    13. android.app.ActivityThread.main(ActivityThread.java:5461)
    13 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    2 frames