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 Rtsunoath
, 1 year ago
Invalid index 20, size is 20
via Apache's JIRA Issue Tracker by Boston Dell-Vandenberg, 10 months ago
via badlogicgames.com by Unknown author, 2 years ago
via GitHub by tchegito
, 2 weeks ago
Invalid index 0, size is 0
via Stack Overflow by SmallSani
, 2 years ago
java.lang.IndexOutOfBoundsException: Invalid index 20, size is 20	at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)	at java.util.ArrayList.get(ArrayList.java:308)	at com.sinaweibo.adapter.HomeAdapter.convert(HomeAdapter.java:39)	at com.sinaweibo.adapter.HomeAdapter.convert(HomeAdapter.java:28)	at com.chad.library.adapter.base.BaseQuickAdapter.onBindViewHolder(BaseQuickAdapter.java:538)	at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5768)	at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5801)	at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5037)	at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4913)	at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2029)	at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1414)	at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1377)	at android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1193)	at android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:1043)	at android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:4357)	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)	at android.view.Choreographer.doCallbacks(Choreographer.java:580)	at android.view.Choreographer.doFrame(Choreographer.java:549)	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)	at android.os.Handler.handleCallback(Handler.java:739)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:135)	at android.app.ActivityThread.main(ActivityThread.java:5254)	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:903)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)