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

Solutions on the web

via GitHub by Lsy1992
, 1 year ago
length=0; index=-1
via Stack Overflow by user3726962
, 1 year ago
via Google Groups by Unknown author, 8 months ago
java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1	at java.util.ArrayList.get(ArrayList.java:310)	at me.yokeyword.indexablelistview.IndexBar.processOverlayView(IndexBar.java:184)	at me.yokeyword.indexablelistview.IndexBar.onTouchEvent(IndexBar.java:143)	at android.view.View.dispatchTouchEvent(View.java:8668)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2523)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2114)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2523)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2114)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2523)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2114)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2523)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2114)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2523)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2114)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2523)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2114)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2523)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2114)	at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2539)	at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1807)	at android.app.Activity.dispatchTouchEvent(Activity.java:2823)	at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60)	at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2496)	at android.view.View.dispatchPointerEvent(View.java:8874)	at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4724)	at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4582)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4081)	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4134)	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4100)	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4237)	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4108)	at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4294)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4081)	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4134)	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4100)	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4108)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4081)	at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6538)	at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6512)	at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6465)	at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6718)	at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)	at android.os.MessageQueue.nativePollOnce(Native Method)	at android.os.MessageQueue.next(MessageQueue.java:148)	at android.os.Looper.loop(Looper.java:151)	at android.app.ActivityThread.main(ActivityThread.java:5824)	at java.lang.reflect.Method.invoke(Native Method)	at java.lang.reflect.Method.invoke(Method.java:372)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1010)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)