I am getting a NullPointerException during texture packing when attempting to export an animation.
Repro:
- Have an image in the skeleton that is a square power-of-two, in this example case say 4096.
- Set max width/height to the same size (4096) OR a smaller size with a scale (e.g. 2048, scale 0.5)
- Have at least 1 pixel of padding in either X or Y, but have "Edge padding" unchecked.
- Export and receive a NullPointerException error in the packing result dialog.
I tried turning various texture packing settings on/off, but only the padding setting seems to be relevant. If I check "Edge padding" I get the normal "Image does not fit with max page size" error as I would expect.
The log and a simple example Spine file is attached. The callstack is:
java.lang.NullPointerException
at hC.a(SourceFile:157)
at hC.a(SourceFile:82)
at com.badlogic.gdx.tools.texturepacker.TexturePacker.a(SourceFile:133)
at nn.a(SourceFile:246)
at nh.run(SourceFile:101)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)