java.lang.IndexOutOfBoundsException

Invalid index 5, size is 3

Samebug tips1

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.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web4266

  • via GitHub by ruyonga
    ,
  • Stack trace

    • java.lang.IndexOutOfBoundsException: Invalid index 5, size is 3 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList.java:308) at android.support.v4.view.ViewPager.getChildDrawingOrder(ViewPager.java:800) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3396) at android.view.View.draw(View.java:16384) at android.support.v4.view.ViewPager.draw(ViewPager.java:2415) at android.view.View.updateDisplayListIfDirty(View.java:15378) at android.view.View.draw(View.java:16151) at android.view.ViewGroup.drawChild(ViewGroup.java:3610) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400) at android.view.View.updateDisplayListIfDirty(View.java:15373) at android.view.View.draw(View.java:16151) at android.view.ViewGroup.drawChild(ViewGroup.java:3610) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400) at android.view.View.draw(View.java:16384) at android.view.View.updateDisplayListIfDirty(View.java:15378) at android.view.View.draw(View.java:16151) at android.view.ViewGroup.drawChild(ViewGroup.java:3610) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400) at android.view.View.draw(View.java:16384) at android.view.View.updateDisplayListIfDirty(View.java:15378) at android.view.View.draw(View.java:16151) at android.view.ViewGroup.drawChild(ViewGroup.java:3610) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400) at android.view.View.updateDisplayListIfDirty(View.java:15373) at android.view.View.draw(View.java:16151) at android.view.ViewGroup.drawChild(ViewGroup.java:3610) at android.support.v4.widget.DrawerLayout.drawChild(DrawerLayout.java:1383) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400) at android.view.View.draw(View.java:16384) at android.view.View.updateDisplayListIfDirty(View.java:15378) at android.view.View.draw(View.java:16151) at android.view.ViewGroup.drawChild(ViewGroup.java:3610) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400) at android.view.View.updateDisplayListIfDirty(View.java:15373) at android.view.View.draw(View.java:16151) at android.view.ViewGroup.drawChild(ViewGroup.java:3610) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400) at android.view.View.updateDisplayListIfDirty(View.java:15373) at android.view.View.draw(View.java:16151) at android.view.ViewGroup.drawChild(ViewGroup.java:3610) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400) at android.view.View.updateDisplayListIfDirty(View.java:15373) at android.view.View.draw(View.java:16151) at android.view.ViewGroup.drawChild(ViewGroup.java:3610) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400) at android.view.View.updateDisplayListIfDirty(View.java:15373) at android.view.View.draw(View.java:16151) at android.view.ViewGroup.drawChild(ViewGroup.java:3610) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400) at android.view.View.draw(View.java:16384) at com.android.internal.policy.PhoneWindow$DecorView.draw(PhoneWindow.java:2692) at android.view.View.updateDisplayListIfDirty(View.java:15378) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:281) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:287) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:322) at android.view.ViewRootImpl.draw(ViewRootImpl.java:2928) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2740) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2358) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1233) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6549) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:919) at android.view.Choreographer.doCallbacks(Choreographer.java:710) at android.view.Choreographer.doFrame(Choreographer.java:645) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:905)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Alexandru PopaAlexandru Popa
    9 times, last one
    winer222winer222
    3 times, last one
    Indri YunitaIndri Yunita
    81 times, last one
    Unknown visitor
    Unknown visitorOnce,
    filpgamefilpgame
    4 times, last one
    241 more bugmates