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

Stack Overflow | Arnav Vohra | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    FirebaseRecyclerAdapter not updating item indexes when data deleted

    Stack Overflow | 10 months ago | Arnav Vohra
    java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2
  2. 0

    RecyclerView index not updating while removing item using FirebaseRecycleradapter

    Stack Overflow | 2 months ago | Animesh Jena
    java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2
  3. 0

    FirebaseRecyclerAdapter with action mode to delete items

    Stack Overflow | 10 months ago | Ricardo Carmo
    java.lang.IndexOutOfBoundsException: Invalid index 15, size is 5
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IndexOutOfBoundsException in case of deleting data from recyclerView using FirebaseRecyclerAdapter

    Stack Overflow | 2 months ago | Animesh Jena
    java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
  6. 0

    Deleting Item in recyclerview using OnClick. Firebase android

    Stack Overflow | 6 months ago | Kmmp
    java.lang.IndexOutOfBoundsException: Invalid index 3, size is 2
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.firebase.ui
    FirebaseRecyclerAdapter.getRef
    1. com.firebase.ui.database.FirebaseArray.getItem(FirebaseArray.java:52)
    2. com.firebase.ui.database.FirebaseRecyclerAdapter.getRef(FirebaseRecyclerAdapter.java:150)
    2 frames
  4. in.arnavvohra.arry2
    EditSubChannelsActivity$2$1.onClick
    1. in.arnavvohra.arry2.EditSubChannelsActivity$2$1.onClick(EditSubChannelsActivity.java:67)
    1 frame
  5. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:5076)
    2. android.view.View$PerformClick.run(View.java:20279)
    3. android.os.Handler.handleCallback(Handler.java:739)
    4. android.os.Handler.dispatchMessage(Handler.java:95)
    5. android.os.Looper.loop(Looper.java:135)
    6. android.app.ActivityThread.main(ActivityThread.java:5930)
    6 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
    2 frames