This site requires JavaScript, please enable it in your browser!
Greenfoot back
Toastminion
Toastminion wrote ...

2012/6/4

Null Pointer Exception after song ends?

Toastminion Toastminion

2012/6/4

#
After my song ends, I get this error: Exception in thread "SoundStream:file:/D:/ddr4/sounds/01.mp3" java.lang.ArrayIndexOutOfBoundsException: 15 at javazoom.jl.decoder.LayerIDecoder$SubbandLayer1Stereo.read_allocation(LayerIDecoder.java:396) at javazoom.jl.decoder.LayerIDecoder.readAllocation(LayerIDecoder.java:108) at javazoom.jl.decoder.LayerIDecoder.decodeFrame(LayerIDecoder.java:72) at javazoom.jl.decoder.Decoder.decodeFrame(Decoder.java:147) at greenfoot.sound.Mp3AudioInputStream.read(Mp3AudioInputStream.java:230) at greenfoot.sound.SoundStream.run(SoundStream.java:302) at java.lang.Thread.run(Thread.java:662) In my code, I simply added a new GreenfootSound that played on the first act of a certain class called "Keyer". How should I fix this problem?
danpost danpost

2012/6/4

#
This discussion might shed some light on what is happening.
You need to login to post a reply.