Code: Select all
public void showCollisionWorld() {
// JFrame frame = new JFrame();
// frame.getContentPane().add(new JbulletDebugDrawerCanvas());
// frame.setVisible(true);
// IDebugDraw drawer = new JbulletDebugDrawer();
// dynamicsWorld.setDebugDrawer(drawer);
try {
JbulletDebugDemoApplication app = new JbulletDebugDemoApplication(LWJGL.getGL(), dynamicsWorld);
app.initPhysics();
app.getDynamicsWorld().setDebugDrawer(new GLDebugDrawer(LWJGL.getGL()));
String[] args = {};
LWJGL.main(args, 800, 600, "Bullet Physics Demo", app);
} catch (LWJGLException ex) {
Logger.getLogger(World.class.getName()).log(Level.SEVERE, null, ex);
} catch (Exception ex) {
Logger.getLogger(World.class.getName()).log(Level.SEVERE, null, ex);
}
}
Code: Select all
Aug 13, 2012 6:55:35 PM com.robotsim.scenegraph.World showCollisionWorld
SEVERE: null
java.lang.NullPointerException
at java.lang.String.getBytes(String.java:994)
at org.lwjgl.opengl.LinuxDisplay.nSetTitle(Native Method)
at org.lwjgl.opengl.LinuxDisplay.setTitle(LinuxDisplay.java:754)
at org.lwjgl.opengl.Display.setTitle(Display.java:567)
at org.lwjgl.opengl.Display.createWindow(Display.java:312)
at org.lwjgl.opengl.Display.create(Display.java:873)
at org.lwjgl.opengl.Display.create(Display.java:782)
at com.bulletphysics.demos.opengl.LWJGL.main(LWJGL.java:54)
at com.robotsim.scenegraph.World.showCollisionWorld(World.java:59)
at com.robotsim.ui.SuperRobotViewer.<init>(SuperRobotViewer.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at ade.gui.ADEGuiCreatorUtil.createGuiPanel(ADEGuiCreatorUtil.java:27)
at ade.gui.ADEGuiExternalFrame.createExternalGUIFrames(ADEGuiExternalFrame.java:157)
at ade.gui.ADEGuiExternalFrame$1.run(ADEGuiExternalFrame.java:132)