OpenBlocks

OpenBlocks

56M Downloads

java.util.NoSuchElementException coming from SoundIconRegistry.java:137

kcoram opened this issue ยท 1 comments

commented

A player on my test server is having crash problems when wearing the Sonic Goggles. He put a crash report up on pastebin: http://pastebin.com/sRraaUwy

I've looked at the code at SoundIconRegistry.java line 137, and see that you aren't checking whether or not the iterator has a next() element before calling next(). You may need to call hasNext() first, and avoid calling next() if there aren't any further items to be iterated over.

commented

I've been trying to dig into the code to see what the root cause of the path being iterated over not having all of the expected parts. The player who posted the crash report said that he put on the goggles to look at/for a Dartcraft Endertot. I'm thinking that the event name for the sound(s) the Endertots make may not be following the expected convention, so splitting the event name to look for the proper icon isn't working correctly. (Assuming that I am understanding what your code is doing and expecting here.)

Hope the additional information is helpful!

Thanks,
-KC