java.lang.IndexOutOfBoundsException: charAt: 48 >= length 48

GitHub | msisinni | 8 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

    GitHub comment 183#232161034

    GitHub | 8 months ago | msisinni
    java.lang.IndexOutOfBoundsException: charAt: 48 >= length 48
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    TokenCompleteTextView that accept free text next to chips

    Stack Overflow | 3 months ago | mslobodan
    java.lang.IndexOutOfBoundsException: charAt: 12 >= length 12

    2 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

      charAt: 48 >= length 48

      at android.text.SpannableStringBuilder.charAt()
    2. Android Platform
      SpannableStringBuilder.charAt
      1. android.text.SpannableStringBuilder.charAt(SpannableStringBuilder.java:114)
      1 frame
    3. com.tokenautocomplete
      TokenCompleteTextView$TokenTextWatcher.afterTextChanged
      1. com.tokenautocomplete.TokenCompleteTextView$TokenTextWatcher.afterTextChanged(TokenCompleteTextView.java:1319)
      1 frame
    4. Android Platform
      InputConnectionWrapper.deleteSurroundingText
      1. android.widget.TextView.sendAfterTextChanged(TextView.java:7842)
      2. android.widget.TextView$ChangeWatcher.afterTextChanged(TextView.java:10077)
      3. android.text.SpannableStringBuilder.sendAfterTextChanged(SpannableStringBuilder.java:982)
      4. android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:509)
      5. android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:212)
      6. android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:30)
      7. android.view.inputmethod.BaseInputConnection.deleteSurroundingText(BaseInputConnection.java:257)
      8. android.view.inputmethod.InputConnectionWrapper.deleteSurroundingText(InputConnectionWrapper.java:76)
      8 frames
    5. com.tokenautocomplete
      TokenCompleteTextView$TokenInputConnection.deleteSurroundingText
      1. com.tokenautocomplete.TokenCompleteTextView$TokenInputConnection.deleteSurroundingText(TokenCompleteTextView.java:1555)
      1 frame
    6. Android
      IInputConnectionWrapper$MyHandler.handleMessage
      1. com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:451)
      2. com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:95)
      2 frames
    7. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:102)
      2. android.os.Looper.loop(Looper.java:157)
      3. android.app.ActivityThread.main(ActivityThread.java:5633)
      3 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Method.java)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    9. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:896)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:712)
      2 frames
    10. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(NativeStart.java)
      1 frame