java.lang.IndexOutOfBoundsException: getChars (-1 ... 0) starts before 0

GitHub | billdacat | 4 months ago
  1. 0

    GitHub comment 6#241237053

    GitHub | 4 months ago | billdacat
    java.lang.IndexOutOfBoundsException: getChars (-1 ... 0) starts before 0
  2. 0

    crash report

    GitHub | 2 years ago | neutrinog
    java.lang.IndexOutOfBoundsException: setSpan (-1 ... -1) starts before 0
  3. 0

    crash report

    GitHub | 2 years ago | neutrinog
    java.lang.IndexOutOfBoundsException: setSpan (-1 ... -1) starts before 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IndexOutOfBoundsException when setting text in EditText using TextWatcher addTextChangedListener()

    Stack Overflow | 2 years ago | John
    java.lang.IndexOutOfBoundsException: replace (-1 ... -1) starts before 0
  6. 0

    test

    GitHub | 2 years ago | neutrinog
    java.lang.IndexOutOfBoundsException: setSpan (-1 ... -1) starts before 0

    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

      getChars (-1 ... 0) starts before 0

      at android.text.SpannableStringBuilder.checkRange()
    2. Android Platform
      BaseInputConnection.getSelectedText
      1. android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1270)
      2. android.text.SpannableStringBuilder.getChars(SpannableStringBuilder.java:1147)
      3. android.text.TextUtils.getChars(TextUtils.java:89)
      4. android.text.TextUtils.substring(TextUtils.java:280)
      5. android.view.inputmethod.BaseInputConnection.getSelectedText(BaseInputConnection.java:531)
      5 frames
    3. Android
      IInputConnectionWrapper$MyHandler.handleMessage
      1. com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:300)
      2. com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:91)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:102)
      2. android.os.Looper.loop(Looper.java:154)
      3. android.app.ActivityThread.main(ActivityThread.java:6077)
      3 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
      2 frames