java.lang.ArrayIndexOutOfBoundsException

length=0; index=-1

Solutions on the web8023

  • via GitHub by vanlooverenkoen
    , 6 months ago
    length=0; index=-1
  • length=0; index=-1
  • length=0; index=-1
  • Stack trace

    • 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 7 months ago
    148 times, 7 months ago
    Once, 1 year ago
    10 times, 1 year ago
    3 times, 1 week ago
    39 more bugmates