Hi!
I tried to run the FlagRush Lesson 9 tutorial, and I get the following exception:
java.lang.NullPointerException
at com.jmex.model.XMLparser.JmeBinaryReader.buildMaterial(JmeBinaryReader.java:1054)
at com.jmex.model.XMLparser.JmeBinaryReader.readBegining(JmeBinaryReader.java:211)
at com.jmex.model.XMLparser.JmeBinaryReader.loadBinaryFormat(JmeBinaryReader.java:161)
at com.jmex.model.XMLparser.JmeBinaryReader.loadBinaryFormat(JmeBinaryReader.java:190)
at jmetest.flagrushtut.lesson9.Lesson9.buildPlayer(Lesson9.java:333)
at jmetest.flagrushtut.lesson9.Lesson9.initGame(Lesson9.java:276)
at com.jme.app.BaseGame.start(BaseGame.java:65)
at jmetest.flagrushtut.lesson9.Lesson9.main(Lesson9.java:127)
10/04/2006 15:03:12 com.jme.app.BaseGame start
INFO: Application ending.
The problem occurs at:
URL bikeFile = Lesson9.class.getClassLoader().getResource("jmetest/data/model/bike.jme");
JmeBinaryReader jbr = new JmeBinaryReader();
jbr.setProperty("bound", "box");
model = jbr.loadBinaryFormat(bikeFile.openStream());
The bike.jme file is there (checked) but there seems to be a problem when it's loaded
Any ideas?
Thanks