Method.invoke() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
Javadoc
Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range.

Applications can subclass this class to indicate similar exceptions. @author Frank Yellin @since JDK1.0

at java.util.ArrayList.throwIndexOutOfBoundsException
(source)
at java.util.ArrayList.get
(source)
at android.widget.HeaderViewListAdapter.getView
(source)
at android.widget.AbsListView.obtainView
(source)
at android.widget.ListView.makeAndAddView
(source)
at android.widget.ListView.fillDown
(source)
at android.widget.ListView.fillGap
(source)
at android.widget.AbsListView.trackMotionScroll
(source)
at android.widget.AbsListView$FlingRunnable.run
(source)
at android.view.Choreographer$CallbackRecord.run
(source)
at android.view.Choreographer.doCallbacks
(source)
at android.view.Choreographer.doFrame
(source)
at android.view.Choreographer$FrameDisplayEventReceiver.run
(source)
at android.os.Handler.handleCallback
(source)
at android.os.Handler.dispatchMessage
(source)
at android.os.Looper.loop
(source)
at android.app.ActivityThread.main
(source)
at java.lang.reflect.Method.invoke
(source)
17 frames hidden

Typical Exception Messages

  1. Invalid index 5, size is 0
  2. Invalid index 13, size is 1

Origin

ActivityThread.main() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
16 frames hidden
android.app.ActivityThread.main
5Web pages

Similar

External results for this pattern (2)

  1. AllenCodervia GitHub2 years ago
    Invalid index 13, size is 1
    Show stack trace