java.lang.IndexOutOfBoundsException: replace (13 ... 14) ends beyond length 13

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 jgabrielfreitas
, 1 year ago
replace (13 ... 14) ends beyond length 13
via GitHub by olegosipenko
, 1 year ago
replace (15 ... 16) ends beyond length 15
via GitHub by AndroidDeveloperLB
, 2 years ago
setSpan (3 ... 3) ends beyond length 2
via Stack Overflow by Sagor Ahmed
, 1 year ago
java.lang.IndexOutOfBoundsException: replace (13 ... 14) ends beyond length 13
at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1264)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:516)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:510)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:509)
at com.github.pinball83.maskededittext.MaskedMaterialEditText$MaskedInputFilter.filter(MaskedMaterialEditText.java:328)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:520)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:510)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:509)
at android.text.method.NumberKeyListener.onKeyDown(NumberKeyListener.java:121)
at android.widget.TextView.doKeyDown(TextView.java:6280)
at android.widget.TextView.onKeyDown(TextView.java:6070)
at android.view.KeyEvent.dispatch(KeyEvent.java:2675)
at android.view.View.dispatchKeyEvent(View.java:9876)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1667)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1667)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1667)
at android.widget.ScrollView.dispatchKeyEvent(ScrollView.java:379)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1667)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1667)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1667)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1667)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1667)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1667)
at com.android.internal.policy.DecorView.superDispatchKeyEvent(DecorView.java:402)
at android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:534)
at android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:50)
at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4297)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4268)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3819)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3872)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3838)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3965)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3846)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4022)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3819)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3872)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3838)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3846)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3819)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6180)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6154)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6115)
at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3617)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
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

Write tip

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