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

GitHub | Rtsunoath | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    GitHub comment 260#242273361

    GitHub | 7 months ago | Rtsunoath
    java.lang.IndexOutOfBoundsException: Invalid index 20, size is 20
  2. 0
    samebug tip
    Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.
  3. 0

    Load more with and without progressbar at bottom

    Stack Overflow | 9 months ago | unknown apk
    java.lang.IndexOutOfBoundsException: Invalid index 20, size is 20
  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 20, size is 20

    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.sinaweibo.adapter
    HomeAdapter.convert
    1. com.sinaweibo.adapter.HomeAdapter.convert(HomeAdapter.java:39)
    2. com.sinaweibo.adapter.HomeAdapter.convert(HomeAdapter.java:28)
    2 frames
  4. com.chad.library
    BaseQuickAdapter.onBindViewHolder
    1. com.chad.library.adapter.base.BaseQuickAdapter.onBindViewHolder(BaseQuickAdapter.java:538)
    1 frame
  5. Android v7
    RecyclerView$ViewFlinger.run
    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.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1414)
    7. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1377)
    8. android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1193)
    9. android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:1043)
    10. android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:4357)
    10 frames
  6. Android Platform
    ActivityThread.main
    1. android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
    2. android.view.Choreographer.doCallbacks(Choreographer.java:580)
    3. android.view.Choreographer.doFrame(Choreographer.java:549)
    4. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
    5. android.os.Handler.handleCallback(Handler.java:739)
    6. android.os.Handler.dispatchMessage(Handler.java:95)
    7. android.os.Looper.loop(Looper.java:135)
    8. android.app.ActivityThread.main(ActivityThread.java:5254)
    8 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
    2 frames