java.lang.IndexOutOfBoundsException

Invalid index 1, size is 0

Samebug tips1

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web7677

  • Invalid index 1, size is 0
  • via GitHub by norani
    , 10 months ago
    Invalid index 1, size is 0
  • Invalid index 1, size is 0
  • Stack trace

    • java.lang.IndexOutOfBoundsException: Invalid index 1, size is 0 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList.java:308) at com.tellfa.colony.Adapters.CommentAdapter2.onBindViewHolder(CommentAdapter2.java:43) at com.tellfa.colony.Adapters.CommentAdapter2.onBindViewHolder(CommentAdapter2.java:21) at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5822) at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5855) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5091) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4967) 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.onLayoutChildren(LinearLayoutManager.java:578) at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3315) at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3124) at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3568) at android.view.View.layout(View.java:15654) at android.view.ViewGroup.layout(ViewGroup.java:4969) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1705) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1559) at android.widget.LinearLayout.onLayout(LinearLayout.java:1468) at android.view.View.layout(View.java:15654) at android.view.ViewGroup.layout(ViewGroup.java:4969) at android.widget.SlidingDrawer.onLayout(SlidingDrawer.java:358) at android.view.View.layout(View.java:15654) at android.view.ViewGroup.layout(ViewGroup.java:4969) at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1077) at android.view.View.layout(View.java:15654) at android.view.ViewGroup.layout(ViewGroup.java:4969) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:573) at android.widget.FrameLayout.onLayout(FrameLayout.java:508) at android.view.View.layout(View.java:15654) at android.view.ViewGroup.layout(ViewGroup.java:4969) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1705) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1559) at android.widget.LinearLayout.onLayout(LinearLayout.java:1468) at android.view.View.layout(View.java:15654) at android.view.ViewGroup.layout(ViewGroup.java:4969) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:573) at android.widget.FrameLayout.onLayout(FrameLayout.java:508) at android.view.View.layout(View.java:15654) at android.view.ViewGroup.layout(ViewGroup.java:4969) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1705) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1559) at android.widget.LinearLayout.onLayout(LinearLayout.java:1468) at android.view.View.layout(View.java:15654) at android.view.ViewGroup.layout(ViewGroup.java:4969) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:573) at android.widget.FrameLayout.onLayout(FrameLayout.java:508) at android.view.View.layout(View.java:15654) at android.view.ViewGroup.layout(ViewGroup.java:4969) at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2102) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1859) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1078) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5875) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767) at android.view.Choreographer.doCallbacks(Choreographer.java:580) at android.view.Choreographer.doFrame(Choreographer.java:550) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)

    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

    3 times, 5 months ago
    2 times, 6 months ago
    7 times, 1 year ago
    3 times, 1 year ago
    Unknown user
    Once, 1 year ago
    241 more bugmates