Bug 675 - GLCanvas NPE if true == Beans.isDesignTime()
Summary: GLCanvas NPE if true == Beans.isDesignTime()
Alias: None
Product: Jogl
Classification: JogAmp
Component: awt (show other bugs)
Version: 2
Hardware: All all
: --- major
Assignee: Sven Gothel
Depends on:
Reported: 2013-01-22 21:51 CET by Sven Gothel
Modified: 2013-02-16 04:17 CET (History)
1 user (show)

See Also:
Type: ---
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
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.


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