infinitely looped java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException: 312
at GalaxyAngelGame.paintFrame(GalaxyAngelGame.java:518)
at GalaxyAngelGame.update(GalaxyAngelGame.java:503)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I got this error while I moved an image that was on the applet using keys to an animated image that would display, but disappear. When I moved the one image to the other, I saw part of the image that disappeared, then I would get the error, and it would repeat infinitely. I would like to note that image was animated using a Thread, and is 103 frames long.
Would someone tell me what I could possibly change/add for the animated image to run without error?
EDIT: Also, line 503 is where the paintFrame () method was called, and line 518 is where the image was drawn, just in case that helps anyone.

