java.lang.StringIndexOutOfBoundsException: length=0; regionStart=0; regionLength=1

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

,
Expert tip

This is a bug when using Micromax devices with VideoView. You can either exclude these devices or look at this workaround: http://stackoverflow.com/a/31942841/4347859

,
via GitHub by Omertron

You need to make sure that capitalisation of the case for the plugin in the properties file is exactly: "AllocinePlugin" and not "allocineplugin"

Solutions on the web

via Stack Overflow by dbpiano
, 2 years ago
length=0; regionStart=0; regionLength=1
via GitHub by MinsungHuh
, 1 year ago
length=124; regionStart=71; regionLength=-72
via GitHub by roundhill
, 2 years ago
length=241; regionStart=238; regionLength=8
via GitHub by LukePulverenti
, 1 year ago
length=65; regionStart=0; regionLength=-1
via GitHub by lw1a2
, 2 years ago
length=441; regionStart=22; regionLength=-23
via GitHub by armenkh
, 1 year ago
java.lang.StringIndexOutOfBoundsException: length=0; regionStart=0; regionLength=1
at java.lang.String.startEndAndLength(String.java:583)
at java.lang.String.substring(String.java:1464)
at com.dev.assetlocation.CheckLocationActivity$3.onTextChanged(CheckLocationActivity.java:162)
at android.widget.TextView.sendOnTextChanged(TextView.java:7318)
at android.widget.TextView.setText(TextView.java:3774)
at android.widget.TextView.setText(TextView.java:3629)
at android.widget.EditText.setText(EditText.java:80)
at android.widget.TextView.setText(TextView.java:3604)
at com.dev.assetlocation.CheckLocationActivity$2.onTextChanged(CheckLocationActivity.java:103)
at android.widget.TextView.sendOnTextChanged(TextView.java:7318)
at android.widget.TextView.handleTextChanged(TextView.java:7377)
at android.widget.TextView$ChangeWatcher.onTextChanged(TextView.java:9076)
at android.text.SpannableStringBuilder.sendTextChanged(SpannableStringBuilder.java:962)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:496)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:435)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:30)
at android.view.inputmethod.BaseInputConnection.replaceText(BaseInputConnection.java:673)
at com.android.internal.widget.EditableInputConnection.commitText(EditableInputConnection.java:183)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:279)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)

Users with the same issue

14 times, 2 months ago
Once, 5 months ago
36 times, 6 months ago
6 times, 6 months ago
7 times, 8 months ago

Write tip

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