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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by billdacat
, 1 year ago
getChars (-1 ... 0) starts before 0
via GitHub by thelong1EU
, 1 month ago
getChars (-1 ... 46) starts before 0
via Google Groups by Impactdni, 2 years ago
getChars (13 ... 0) has end before start
via soso.io by Unknown author, 2 years ago
java.lang.IndexOutOfBoundsException: getChars (-1 ... 0) starts before 0
at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1270)
at android.text.SpannableStringBuilder.getChars(SpannableStringBuilder.java:1147)
at android.text.TextUtils.getChars(TextUtils.java:89)
at android.text.TextUtils.substring(TextUtils.java:280)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:300)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)

Users with the same issue

Once, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.