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

  1. ,
    Expert tip

    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.

  2. ,

    Thrown if trying to access an index which is out of bounds on objects like String, Array, or Vector. Any negative integer less than or equal to -1 and positive integer greater than or equal to the size of the object is an index which would be out of bounds

Solutions on the web

via GitHub by waitingal
, 1 year ago
Invalid index 2, size is 2
via GitHub by leowhiterussian
, 1 year ago
Invalid index 3, size is 1
via GitHub by optnio00
, 1 year ago
Invalid index 0, size is 0
java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2 at java.util.ArrayList.throwIndexOutOfBoundsException( at java.util.ArrayList.get( at com.xdandroid.simplerecyclerview.GroupAdapter.getTitleWithOrder( at com.xdandroid.simplerecyclerview.GroupAdapter.onViewHolderBind( at com.xdandroid.simplerecyclerview.Adapter.onBindViewHolder( at$Adapter.onBindViewHolder( at$Adapter.bindViewHolder( at$Recycler.getViewForPosition( at$Recycler.getViewForPosition( at$ at at at at at at at at android.view.View.layout( at android.view.ViewGroup.layout( at android.widget.LinearLayout.setChildFrame( at android.widget.LinearLayout.layoutVertical( at android.widget.LinearLayout.onLayout( at android.view.View.layout(