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

Stack Overflow | Vaishali Goel | 3 months ago
  1. 0

    Populate recycler view with new list if items

    Stack Overflow | 3 months ago | Vaishali Goel
    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 4 days ago
  2. mhicauber 1 times, last 4 days ago
  3. filpgame 2 times, last 1 week ago
  4. tvrmsmith 1 times, last 1 week ago
  5. Indri Yunita 12 times, last 1 week 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.roam1.roam1_selfcare
    InstructionAdapter.getItemViewType
    1. com.roam1.roam1_selfcare.InstructionAdapter.getItemViewType(InstructionAdapter.java:117)
    1 frame
  4. Android v7
    RecyclerView.onTouchEvent
    1. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4960)
    2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4913)
    3. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2029)
    4. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1414)
    5. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1377)
    6. android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1193)
    7. android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:1043)
    8. android.support.v7.widget.RecyclerView.scrollByInternal(RecyclerView.java:1552)
    9. android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2649)
    9 frames
  5. Android Platform
    ViewGroup.dispatchTouchEvent
    1. android.view.View.dispatchTouchEvent(View.java:9297)
    2. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2549)
    3. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2240)
    4. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2555)
    5. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    6. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2555)
    7. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    8. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2555)
    9. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    10. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2555)
    11. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    12. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2555)
    13. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    14. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2555)
    15. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    16. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2555)
    17. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    18. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2555)
    19. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    20. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2555)
    21. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)
    21 frames
  6. Android
    PhoneWindow.superDispatchTouchEvent
    1. com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2403)
    2. com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1737)
    2 frames
  7. Android Platform
    Activity.dispatchTouchEvent
    1. android.app.Activity.dispatchTouchEvent(Activity.java:2769)
    1 frame
  8. Android v7
    WindowCallbackWrapper.dispatchTouchEvent
    1. android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:63)
    1 frame
  9. Android
    PhoneWindow$DecorView.dispatchTouchEvent
    1. com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2364)
    1 frame
  10. Android Platform
    ViewRootImpl$InputStage.forward
    1. android.view.View.dispatchPointerEvent(View.java:9517)
    2. android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4242)
    3. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4108)
    4. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3654)
    5. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3707)
    6. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3673)
    7. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3799)
    8. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3681)
    9. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3856)
    10. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3654)
    11. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3707)
    12. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3673)
    12 frames