java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0

Stack Overflow | bluemunch | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    IndexOutOfBoundsException on ArrayList

    Stack Overflow | 8 months ago | bluemunch
    java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
  2. 0

    High: Stickerbook crash

    GitHub | 2 years ago | itscam
    java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    [Crash Log] Sat, 01 Nov 2014 14:55:53 GMT

    GitHub | 2 years ago | blFeedbackBot
    java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
  5. 0

    [Crash Log] Sun, 09 Nov 2014 15:14:03 GMT

    GitHub | 2 years ago | blFeedbackBot
    java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IndexOutOfBoundsException

    Invalid index 0, size is 0

    at java.util.ArrayList.throwIndexOutOfBoundsException()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
    2. java.util.ArrayList.get(ArrayList.java:308)
    2 frames
  3. com.elgami.market
    MarketFeedRecyclerAdapter.onBindViewHolder
    1. com.elgami.market.MarketFeedRecyclerAdapter.bindMarketFeedItemView(MarketFeedRecyclerAdapter.java:94)
    2. com.elgami.market.MarketFeedRecyclerAdapter.onBindViewHolder(MarketFeedRecyclerAdapter.java:79)
    2 frames
  4. Android v7
    RecyclerView.onLayout
    1. android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5768)
    2. android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5801)
    3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5037)
    4. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4913)
    5. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2029)
    6. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1414)
    7. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1377)
    8. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:578)
    9. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3260)
    10. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3069)
    11. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3518)
    11 frames
  5. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:16636)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    2 frames
  6. Android Support v4
    SwipeRefreshLayout.onLayout
    1. android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:598)
    1 frame
  7. Android Platform
    FrameLayout.onLayout
    1. android.view.View.layout(View.java:16636)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    3. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
    4. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
    5. android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
    6. android.view.View.layout(View.java:16636)
    7. android.view.ViewGroup.layout(ViewGroup.java:5437)
    8. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079)
    9. android.view.View.layout(View.java:16636)
    10. android.view.ViewGroup.layout(ViewGroup.java:5437)
    11. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    12. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    13. android.view.View.layout(View.java:16636)
    14. android.view.ViewGroup.layout(ViewGroup.java:5437)
    15. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
    16. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
    17. android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
    18. android.view.View.layout(View.java:16636)
    19. android.view.ViewGroup.layout(ViewGroup.java:5437)
    20. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    21. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    22. android.view.View.layout(View.java:16636)
    23. android.view.ViewGroup.layout(ViewGroup.java:5437)
    24. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
    25. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
    26. android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
    27. android.view.View.layout(View.java:16636)
    28. android.view.ViewGroup.layout(ViewGroup.java:5437)
    29. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    30. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    30 frames
  8. Android
    PhoneWindow$DecorView.onLayout
    1. com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2678)
    1 frame
  9. Android Platform
    Choreographer.doCallbacks
    1. android.view.View.layout(View.java:16636)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    3. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2171)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1931)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:670)
    8 frames