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

GitHub | GoogleCodeExporter | 2 years 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

    GitHub comment 17#80697150

    GitHub | 2 years ago | GoogleCodeExporter
    java.lang.IndexOutOfBoundsException: setSpan (23 ... 23) ends beyond length 4
  2. 0

    howard peeples - Google+

    google.com | 1 year ago
    java.lang.IndexOutOfBoundsException: setSpan (8 ... 10) ends beyond length 8
  3. 0

    android - erro ao tentar editText.setSelection - Stack Overflow em Português

    stackoverflow.com | 1 year ago
    java.lang.IndexOutOfBoundsException: setSpan (17 ... 17) ends beyond length 13
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.IndexOutOfBoundsException

    GitHub | 2 years ago | GoogleCodeExporter
    java.lang.IndexOutOfBoundsException: setSpan (21 ... 21) ends beyond length 2
  6. 0

    [Android] Length validation in Entry.TextChanged event throws exception

    Xamarin Bugzilla | 2 years ago | prashant
    java.lang.IndexOutOfBoundsException: setSpan (5 ... 6) ends beyond length 5

    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 (21 ... 21) ends beyond length 2

      at android.text.SpannableStringBuilder.checkRange()
    2. Android Platform
      ViewGroup.dispatchKeyEvent
      1. android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:945)
      2. android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:527)
      3. android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:520)
      4. android.widget.SpellChecker$SpellParser.init(SpellChecker.java:403)
      5. android.widget.SpellChecker.spellCheck(SpellChecker.java:224)
      6. android.widget.TextView.updateSpellCheckSpans(TextView.java:7810)
      7. android.widget.TextView.sendOnTextChanged(TextView.java:7638)
      8. android.widget.TextView.handleTextChanged(TextView.java:7681)
      9. android.widget.TextView$ChangeWatcher.onTextChanged(TextView.java:8044)
      10. android.text.SpannableStringBuilder.sendTextChange(SpannableStringBuilder.java:892)
      11. android.text.SpannableStringBuilder.change(SpannableStringBuilder.java:389)
      12. android.text.SpannableStringBuilder.change(SpannableStringBuilder.java:266)
      13. android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:443)
      14. android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:216)
      15. android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:29)
      16. android.text.method.BaseKeyListener.backspaceOrForwardDelete(BaseKeyListener.java:90)
      17. android.text.method.BaseKeyListener.backspace(BaseKeyListener.java:45)
      18. android.text.method.BaseKeyListener.onKeyDown(BaseKeyListener.java:151)
      19. android.text.method.QwertyKeyListener.onKeyDown(QwertyKeyListener.java:352)
      20. android.text.method.TextKeyListener.onKeyDown(TextKeyListener.java:132)
      21. android.widget.TextView.doKeyDown(TextView.java:5445)
      22. android.widget.TextView.onKeyDown(TextView.java:5267)
      23. android.widget.AutoCompleteTextView.onKeyDown(AutoCompleteTextView.java:682)
      24. android.view.KeyEvent.dispatch(KeyEvent.java:2551)
      25. android.view.View.dispatchKeyEvent(View.java:5500)
      26. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
      27. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
      28. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
      29. android.widget.ScrollView.dispatchKeyEvent(ScrollView.java:344)
      30. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
      31. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
      32. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
      33. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
      33 frames
    3. Android
      PhoneWindow.superDispatchKeyEvent
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:1879)
      2. com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1361)
      2 frames
    4. Android Platform
      Activity.dispatchKeyEvent
      1. android.app.Activity.dispatchKeyEvent(Activity.java:2324)
      1 frame
    5. Android
      PhoneWindow$DecorView.dispatchKeyEvent
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1806)
      1 frame
    6. Android Platform
      ActivityThread.main
      1. android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:3327)
      2. android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2597)
      3. android.os.Handler.dispatchMessage(Handler.java:99)
      4. android.os.Looper.loop(Looper.java:137)
      5. android.app.ActivityThread.main(ActivityThread.java:4424)
      5 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
      2 frames
    9. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame