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

GitHub | waitingal | 2 months ago
  1. 0

    GitHub comment 3#252968150

    GitHub | 2 months ago | waitingal
    java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2
  2. 0

    Simple Adapter, Invalid index when filtering

    Stack Overflow | 2 years ago | M0NKEYRASH
    java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Set Condition on checkbox, in android

    Stack Overflow | 2 years ago | Haya suleman
    java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2
  5. 0

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

    Stack Overflow | 2 years ago | Rohit Goyal
    java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2

  1. bmacedo 4 times, last 9 hours ago
  2. mhicauber 1 times, last 14 hours ago
  3. filpgame 2 times, last 4 days ago
  4. tvrmsmith 1 times, last 4 days ago
  5. Indri Yunita 12 times, last 5 days ago
67 more registered users
28 unregistered visitors
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 2, size is 2

    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.xdandroid.simplerecyclerview
    Adapter.onBindViewHolder
    1. com.xdandroid.simplerecyclerview.GroupAdapter.getTitleWithOrder(GroupAdapter.java:88)
    2. com.xdandroid.simplerecyclerview.GroupAdapter.onViewHolderBind(GroupAdapter.java:52)
    3. com.xdandroid.simplerecyclerview.Adapter.onBindViewHolder(Adapter.java:135)
    3 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.GridLayoutManager.layoutChunk(GridLayoutManager.java:531)
    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.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:170)
    10. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3260)
    11. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3069)
    12. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3518)
    12 frames
  5. Android Platform
    View.layout
    1. android.view.View.layout(View.java:16112)
    2. android.view.ViewGroup.layout(ViewGroup.java:5185)
    3. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1959)
    4. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1813)
    5. android.widget.LinearLayout.onLayout(LinearLayout.java:1722)
    6. android.view.View.layout(View.java:16112)
    6 frames