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

Stack Overflow | Nitish | 6 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

    Android: Recycler View with filterable interface crashes

    Stack Overflow | 6 months ago | Nitish
    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. in.droom.adapters
    MultiSelectRecyclerViewAdapter.onBindViewHolder
    1. in.droom.adapters.recyclerviewadapter.MultiSelectRecyclerViewAdapter.onBindViewHolder(MultiSelectRecyclerViewAdapter.java:48)
    2. in.droom.adapters.recyclerviewadapter.MultiSelectRecyclerViewAdapter.onBindViewHolder(MultiSelectRecyclerViewAdapter.java:20)
    2 frames
  4. Android v7
    RecyclerView.onLayout
    1. android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5138)
    2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4433)
    3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4326)
    4. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1955)
    5. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1364)
    6. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1327)
    7. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:556)
    8. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2713)
    9. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3011)
    9 frames
  5. Android Platform
    ViewGroup.layout
    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.FrameLayout.layoutChildren(FrameLayout.java:336)
    9. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    10. android.view.View.layout(View.java:16636)
    11. android.view.ViewGroup.layout(ViewGroup.java:5437)
    12. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
    13. android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1732)
    14. android.widget.LinearLayout.onLayout(LinearLayout.java:1497)
    15. android.view.View.layout(View.java:16636)
    16. android.view.ViewGroup.layout(ViewGroup.java:5437)
    17. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079)
    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.FrameLayout.layoutChildren(FrameLayout.java:336)
    25. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    26. android.view.View.layout(View.java:16636)
    27. android.view.ViewGroup.layout(ViewGroup.java:5437)
    28. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    29. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    30. android.view.View.layout(View.java:16636)
    31. android.view.ViewGroup.layout(ViewGroup.java:5437)
    31 frames
  6. Android Support v4
    DrawerLayout.onLayout
    1. android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:907)
    1 frame
  7. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:16636)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    4. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    5. android.view.View.layout(View.java:16636)
    6. android.view.ViewGroup.layout(ViewGroup.java:5437)
    6 frames
  8. Android
    ActionBarOverlayLayout.onLayout
    1. com.android.internal.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:493)
    1 frame
  9. Android Platform
    FrameLayout.onLayout
    1. android.view.View.layout(View.java:16636)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    4. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    4 frames
  10. Android
    PhoneWindow$DecorView.onLayout
    1. com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2678)
    1 frame
  11. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:16636)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    2 frames