Bug 675 - GLCanvas NPE if true == Beans.isDesignTime()
Summary: GLCanvas NPE if true == Beans.isDesignTime()
Status: RESOLVED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: awt (show other bugs)
Version: 2
Hardware: All all
: --- major
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
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:
3567e7e8519f82720f98b0b2ac30456cbfeddc0d
Workaround: ---


Attachments

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.
>

<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 .