Bug 675

Summary: GLCanvas NPE if true == Beans.isDesignTime()
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: awtAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: major CC: gouessej
Priority: ---    
Version: 2   
Hardware: All   
OS: all   
Type: --- SCM Refs:
3567e7e8519f82720f98b0b2ac30456cbfeddc0d
Workaround: ---

Description Sven Gothel 2013-01-22 21:51:47 CET
On 01/18/2013 09:01 PM, Andreas [via jogamp] wrote:> I found the answer for the GLCanvas problem. There is an if statement
> "Beans.isDesignTime()" in line 1086 of the GLCanvas which was true for my
> Netbeans runs and the GUIBuilder. So it returns a null
> AWTGraphicsConfiguration for the chooseGraphicsConfiguration method. If I set
> Beans.setDesignTime(false); before the GLCanvas is started everything works fine.
>

<http://forum.jogamp.org/Resize-of-a-JCanvas3D-tp4027842p4027936.html>

Yes, we throw a NPE .. will add simple test case just setting the flag testing the
code path .