java.lang.IndexOutOfBoundsException

Index: 0, Size: 0

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.

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

Solutions on the web6957

  • Index: 0, Size: 0
  • Index: 0, Size: 0
  • Stack trace

    • java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.get(ArrayList.java:429) at spaceinvaders.sprite.SpriteAnimation.draw(SpriteAnimation.java:37) at spaceinvaders.enemytypes.EnemyTypeBasic.draw(EnemyTypeBasic.java:43) at spaceinvaders.levels.Level1.draw(Level1.java:33) at spaceinvaders.gamescreen.GameScreen.draw(GameScreen.java:32) at spaceinvaders.state.StateMachine.draw(StateMachine.java:23) at spaceinvaders.display.Display.draw(Display.java:104) at spaceinvaders.display.Display.run(Display.java:86) at java.lang.Thread.run(Thread.java:745)

    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

    6 times, 1 day ago
    9 times, 2 days ago
    2 times, 5 days ago
    19 times, 1 week ago
    312 times, 1 week ago
    239 more bugmates