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?