Login  Register

Re: NullPointerException when GLWindow.setVisible(true) is called?

Posted by Sven Gothel on Feb 07, 2014; 2:58pm
URL: https://forum.jogamp.org/NullPointerException-when-GLWindow-setVisible-true-is-called-tp4031493p4031499.html

On 02/07/2014 03:53 PM, Pepe1 [via jogamp] wrote:

> Right, sorry. Let's try again.
>
> The stack trace:
>
> Caused by: java.lang.NullPointerException
>         at Menu.drawBackground(Menu.java:37)
>         at Menu.display(Menu.java:29)
>         at MainWindow.display(MainWindow.java:86)
>         at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:665)
>         at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:649)
>         at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:399)
Voila, i.e. your Menu.java:37 uses a reference which is NULL.

~Sven


signature.asc (894 bytes) Download Attachment