libgdx/libgdx — pull request #577 by hneuer (2013-09-12 20:42:01+00:00)
Title: AtlasTmxMapLoader small fixes

- Avoid NPE if atlas property is not set and throw gdx exception with error message instead
- removed unnecessary object creation

Caused by: java.lang.NullPointerException
at com.badlogic.gdx.maps.tiled.AtlasTmxMapLoader.loadTileset(AtlasTmxMapLoader.java:340)
at com.badlogic.gdx.maps.tiled.AtlasTmxMapLoader.loadMap(AtlasTmxMapLoader.java:266)
at com.badlogic.gdx.maps.tiled.AtlasTmxMapLoader.loadAsync(AtlasTmxMapLoader.java:221)
... 10 more