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

GitHub | billdacat | 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

    GitHub comment 6#241237053

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

    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