ObjToJme NullPointer

I am trying to write a simple little GUI for converting models into the jme format. When I do ObjToJme converter=new ObjToJme(); I get a nullPointerException:



Exception in thread "main" java.lang.NullPointerException
   at com.jme.scene.model.XMLparser.Converters.ObjToJme$MaterialGrouping.<init>(ObjToJme.java:274)
   at com.jme.scene.model.XMLparser.Converters.ObjToJme.<init>(ObjToJme.java:40)
   at com.gthought.jme.ModelConverter.<init>(ModelConverter.java:29)
   at com.gthought.jme.ModelConverter.main(ModelConverter.java:96)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)



However, if I create a class that extends SimpleGame everything works fine. My current class extends JFrame and has nothing to do with rendering any graphics. Anyone know what the problem is? Why the reliance on SimpleGame for the converter?

Hello,



I don’t know if it could be usefull for you but i have already developped a GUI for the model converter. it’s downloadable at

http://www.kidiwi.com/magikopera/

However, my hosting is not working all the time at the moment so perhaps it’s not very easy to acces it. If you want i can mail you directly the jar.



bye,



Adenthar.

That would be great. gdboling at gmail dot com.



I would still like to know why I am getting that error message though.

It’s because a DisplaySystem doesn’t exist to create the material states it needs to convert models. Add this line before you try to convert your model.



new DummyDisplaySystem();

Hello,



finally, i’ve solved my problem by using geocities, so you can get it at :



http://www.geocities.com/adenthar/



Bye,



Adenthar.

"Cep21" wrote:
It's because a DisplaySystem doesn't exist to create the material states it needs to convert models. Add this line before you try to convert your model.

new DummyDisplaySystem();

Thanks Cep.