java.lang.IndexOutOfBoundsException: Invalid index 15, size is 5

Stack Overflow | Ricardo Carmo | 7 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

    FirebaseRecyclerAdapter with action mode to delete items

    Stack Overflow | 7 months ago | Ricardo Carmo
    java.lang.IndexOutOfBoundsException: Invalid index 15, size is 5
  2. 0

    FirebaseRecyclerAdapter not updating item indexes when data deleted

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

    Deleting Item in recyclerview using OnClick. Firebase android

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

    Automated exception search integrated into your IDE

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 15, size is 5

    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. com.doeal.doeal
    NoticiasAdapter$4$1.onClick
    1. com.doeal.doeal.adapters.NoticiasAdapter.removeItems(NoticiasAdapter.java:187)
    2. com.doeal.doeal.adapters.NoticiasAdapter.access$700(NoticiasAdapter.java:43)
    3. com.doeal.doeal.adapters.NoticiasAdapter$4$1.onClick(NoticiasAdapter.java:248)
    3 frames
  5. cn.pedant.SweetAlert
    SweetAlertDialog.onClick
    1. cn.pedant.SweetAlert.SweetAlertDialog.onClick(SweetAlertDialog.java:372)
    1 frame
  6. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:5201)
    2. android.view.View$PerformClick.run(View.java:21163)
    3. android.os.Handler.handleCallback(Handler.java:746)
    4. android.os.Handler.dispatchMessage(Handler.java:95)
    5. android.os.Looper.loop(Looper.java:148)
    6. android.app.ActivityThread.main(ActivityThread.java:5443)
    6 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    2 frames