Maescool/Catacomb-Snatch — Issue #216: Game freezes when start pressed
Author: Marlinc
Created: 2012-02-23 01:44:34+00:00
State: open

If I press the start button the game freezes entirely and NetBeans then gives me the output:

First the normal output (nothing special as far as I know):

```
init:
Deleting: /home/marlinc/Projects/Catacomb-Snatch/build/built-jar.properties
deps-jar:
Updating property file: /home/marlinc/Projects/Catacomb-Snatch/build/built-jar.properties
compile:
Map info added: /levels/level1.bmp(vanilla)
Map info added: /levels/AsymeTrical.bmp(vanilla)
Map info added: /levels/CataBOMB.bmp(vanilla)
Map info added: /levels/Siege.bmp(vanilla)
Map info added: /levels/TheMaze.bmp(vanilla)
Map info added: /levels/Circular Shapes.bmp(vanilla)
Map info added: /levels/BlackHole.bmp(vanilla)
Map info added: /levels/RailRoads.bmp(vanilla)
Looking for levels: /home/marlinc/.mojam/levels

Starting up SoundSystem...
Initializing Java Sound
(The Java Sound API. For more information, see http://java.sun.com/products/java-media/sound/)
JavaSound initialized.

Map info added: /levels/level1.bmp(vanilla)
Map info added: /levels/AsymeTrical.bmp(vanilla)
Map info added: /levels/CataBOMB.bmp(vanilla)
Map info added: /levels/Siege.bmp(vanilla)
Map info added: /levels/TheMaze.bmp(vanilla)
Map info added: /levels/Circular Shapes.bmp(vanilla)
Map info added: /levels/BlackHole.bmp(vanilla)
Map info added: /levels/RailRoads.bmp(vanilla)
Looking for levels: /home/marlinc/.mojam/levels
```

And then when I press the start button:

```
Exception in thread "Thread-1" java.lang.IllegalArgumentException: input == null!
at javax.imageio.ImageIO.read(ImageIO.java:1362)
at com.mojang.mojam.level.Level.fromFile(Level.java:94)
at com.mojang.mojam.gui.LevelButton.buildMinimap(LevelButton.java:53)
at com.mojang.mojam.gui.LevelButton.(LevelButton.java:36)
at com.mojang.mojam.gui.LevelSelect.setupLevelButtons(LevelSelect.java:59)
at com.mojang.mojam.gui.LevelSelect.(LevelSelect.java:41)
at com.mojang.mojam.MojamComponent.handleAction(MojamComponent.java:663)
at com.mojang.mojam.MojamComponent.buttonPressed(MojamComponent.java:642)
at com.mojang.mojam.gui.ClickableComponent.tick(ClickableComponent.java:38)
at com.mojang.mojam.gui.GuiMenu.tick(GuiMenu.java:33)
at com.mojang.mojam.MojamComponent.tick(MojamComponent.java:466)
at com.mojang.mojam.MojamComponent.run(MojamComponent.java:315)
at java.lang.Thread.run(Thread.java:662)
```

I'm running Linux Mint 12 with Java:

```
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
```