<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>675</bug_id>
          
          <creation_ts>2013-01-22 21:51:47 +0100</creation_ts>
          <short_desc>GLCanvas NPE if true == Beans.isDesignTime()</short_desc>
          <delta_ts>2013-02-16 04:17:29 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>awt</component>
          <version>2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>gouessej</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs>3567e7e8519f82720f98b0b2ac30456cbfeddc0d</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2119</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-01-22 21:51:47 +0100</bug_when>
    <thetext>On 01/18/2013 09:01 PM, Andreas [via jogamp] wrote:&gt; I found the answer for the GLCanvas problem. There is an if statement
&gt; &quot;Beans.isDesignTime()&quot; in line 1086 of the GLCanvas which was true for my
&gt; Netbeans runs and the GUIBuilder. So it returns a null
&gt; AWTGraphicsConfiguration for the chooseGraphicsConfiguration method. If I set
&gt; Beans.setDesignTime(false); before the GLCanvas is started everything works fine.
&gt;

&lt;http://forum.jogamp.org/Resize-of-a-JCanvas3D-tp4027842p4027936.html&gt;

Yes, we throw a NPE .. will add simple test case just setting the flag testing the
code path .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124</commentid>
    <comment_count>1</comment_count>
    <who name="Julien Gouesse">gouessej</who>
    <bug_when>2013-01-25 11:00:36 +0100</bug_when>
    <thetext>Why do we do that?
https://github.com/sgothel/jogl/blob/master/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java#L1148
https://github.com/sgothel/jogl/blob/master/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java#L544
https://github.com/sgothel/jogl/blob/master/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java#L580
https://github.com/sgothel/jogl/blob/master/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java#L479
Should we remove all these tests?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2190</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-02-16 04:17:29 +0100</bug_when>
    <thetext>http://jogamp.org/git/?p=jogl.git;a=commit;h=3567e7e8519f82720f98b0b2ac30456cbfeddc0d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>