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 RR12
, 1 year ago
Invalid index 0, size is 0
via Stack Overflow by Unknown author, 2 years ago
Invalid index 0, size is 0
via Stack Overflow by Ashish Yadav
, 2 years ago
via Stack Overflow by johncurtis32
, 2 years ago
via GitHub by venkateshj99
, 4 months ago
Invalid index 0, size is 0
java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0	at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)	at java.util.ArrayList.get(ArrayList.java:308)	at com.mikepenz.fastadapter.adapters.ItemAdapter.getAdapterItem(ItemAdapter.java:192)	at com.mikepenz.fastadapter.FastAdapter.getItem(FastAdapter.java:490)	at com.mikepenz.fastadapter.FastAdapter.getItemViewType(FastAdapter.java:538)	at android.support.v7.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition(RecyclerView.java:4510)	at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4636)	at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4617)	at android.support.v7.widget.LayoutState.next(LayoutState.java:100)	at android.support.v7.widget.StaggeredGridLayoutManager.fill(StaggeredGridLayoutManager.java:1538)	at android.support.v7.widget.StaggeredGridLayoutManager.onLayoutChildren(StaggeredGridLayoutManager.java:657)	at android.support.v7.widget.StaggeredGridLayoutManager.onLayoutChildren(StaggeredGridLayoutManager.java:592)	at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3028)	at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2906)	at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3283)	at android.view.View.layout(View.java:16075)	at android.view.ViewGroup.layout(ViewGroup.java:5300)	at android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:596)	at android.view.View.layout(View.java:16075)	at android.view.ViewGroup.layout(ViewGroup.java:5300)	at android.support.v4.view.ViewPager.onLayout(ViewPager.java:1695)	at android.view.View.layout(View.java:16075)	at android.view.ViewGroup.layout(ViewGroup.java:5300)	at android.support.design.widget.HeaderScrollingViewBehavior.layoutChild(HeaderScrollingViewBehavior.java:122)	at android.support.design.widget.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:42)	at android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:1170)	at android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:814)	at android.view.View.layout(View.java:16075)	at android.view.ViewGroup.layout(ViewGroup.java:5300)	at com.jeremyfeinstein.slidingmenu.lib.CustomViewAbove.onLayout(CustomViewAbove.java:476)	at android.view.View.layout(View.java:16075)	at android.view.ViewGroup.layout(ViewGroup.java:5300)	at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1077)	at android.view.View.layout(View.java:16075)	at android.view.ViewGroup.layout(ViewGroup.java:5300)	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)	at android.widget.FrameLayout.onLayout(FrameLayout.java:514)	at android.view.View.layout(View.java:16075)	at android.view.ViewGroup.layout(ViewGroup.java:5300)	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)	at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)	at android.view.View.layout(View.java:16075)	at android.view.ViewGroup.layout(ViewGroup.java:5300)	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)	at android.widget.FrameLayout.onLayout(FrameLayout.java:514)	at android.view.View.layout(View.java:16075)	at android.view.ViewGroup.layout(ViewGroup.java:5300)	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)	at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)	at android.view.View.layout(View.java:16075)	at android.view.ViewGroup.layout(ViewGroup.java:5300)	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)	at android.widget.FrameLayout.onLayout(FrameLayout.java:514)	at android.view.View.layout(View.java:16075)	at android.view.ViewGroup.layout(ViewGroup.java:5300)	at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2119)	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1873)	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1073)