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

GitHub | teolemon | 4 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

    Array Index out of bound when Scrolling list view fast while updating data from server

    Stack Overflow | 1 year ago | Android
    java.lang.IndexOutOfBoundsException: Invalid index 5, size is 0
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Array size 0 in adapter > 0 in MainActivity?

    Stack Overflow | 3 years ago | End.Game
    java.lang.IndexOutOfBoundsException: Invalid index 33, size is 33
  4. 0

    Invalid index 3, size is 0 in Android

    Stack Overflow | 2 years ago | Akhil Yeleswarapu
    java.lang.IndexOutOfBoundsException: Invalid index 2, 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 9, size is 9

    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. openfoodfacts.github.scrachx
    SaveListAdapter.getView
    1. openfoodfacts.github.scrachx.openfood.views.adapters.SaveListAdapter.getView(SaveListAdapter.java:53)
    1 frame
  4. Android Platform
    ActivityThread.main
    1. android.widget.AbsListView.obtainView(AbsListView.java:2346)
    2. android.widget.ListView.makeAndAddView(ListView.java:1876)
    3. android.widget.ListView.fillDown(ListView.java:702)
    4. android.widget.ListView.fillGap(ListView.java:666)
    5. android.widget.AbsListView.trackMotionScroll(AbsListView.java:5053)
    6. android.widget.AbsListView$FlingRunnable.run(AbsListView.java:4601)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:670)
    9. android.view.Choreographer.doFrame(Choreographer.java:603)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
    11. android.os.Handler.handleCallback(Handler.java:739)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:148)
    14. android.app.ActivityThread.main(ActivityThread.java:5461)
    14 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    2 frames