Sean and Justin,

        I'm a little confuse on whether the NPE is on addChild() or
setChild(). We did fix a bug reported by Justin in j3d1.3beta2 :

BugId 4633672 : Group.setChild() may throw NullPointerException.

and the fix is based on the following trace we've received :
J3D 1.3b1

Exception in thread "main" java.lang.NullPointerException
         at javax.media.j3d.Group.setChild(Group.java:133)
         at CullingDemo.loadTerrain(CullingDemo.java:274)
         at CullingDemo.main(CullingDemo.java:290)


If you're seeing a different trace, it will be greatly appreciated
if you can send us a test program or a trace.

thanks,
        Chien Yang
        Java 3D Team.





> Date: Thu, 11 Jul 2002 18:35:23 -0700
> From: Sean Sylvis <[EMAIL PROTECTED]>
> Subject: Re: [JAVA3D] BranchGroups
> To: [EMAIL PROTECTED]
> MIME-version: 1.0
> X-MIMEOLE: Produced By Microsoft Exchange V6.0.5762.3
> Content-transfer-encoding: quoted-printable
> Content-class: urn:content-classes:message
> Delivered-to: [EMAIL PROTECTED]
> Thread-topic: Re: [JAVA3D] BranchGroups
> Thread-index: AcIpQ6SVlZGhO0TPRGGbkeVbf1bxQQAAJK/Q
> X-MS-Has-Attach:
> X-MS-TNEF-Correlator:
>
> I am using the DirectX 1.3 FCS and the problem does not seem to have been
fixed.
>
> Sean
>
>
> > -----Original Message-----
> > From: Justin Couch [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 11, 2002 6:33 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JAVA3D] BranchGroups
> >
> >
> > Sean Sylvis wrote:
> > > What happens when BranchGroup.addChild(null) is called?
> > >
> > > I was hoping to use the 'null' as a placeholder that I
> > could replace later with a call to setChild(), but the
> > addition of 'null' to the BranchGroup child list seems
> > transient. Immediately after adding the right number of
> > 'null's to a BranchGroup (to get the number of children
> > correct for replacement later), the method numChildren()
> > reports the correct number of children. However, when
> > numChildren() is later (in another method) called on this
> > same BranchGroup, the value returned is zero.
> >
> > This is a regression bug in 1.3. I alerted the team to this issue back
> > in beta 1 and they promised they would fix it. It wasn't
> > fixed with beta
> > 2 and I haven't checked the FCS release to know whether it was fixed
> > there. Like you, I used to use this tactic quite frequently in my code
> > and 1.3 broke a lot of stuff.
> >
> > --
> > Justin Couch                         http://www.vlc.com.au/~justin/
> > Java Architect & Bit Twiddler              http://www.yumetech.com/
> > Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
> > -------------------------------------------------------------------
> > "Humanism is dead. Animals think, feel; so do machines now.
> > Neither man nor woman is the measure of all things. Every organism
> > processes data according to its domain, its environment; you, with
> > all your brains, would be useless in a mouse's universe..."
> >                                                - Greg Bear, Slant
> > -------------------------------------------------------------------
> >
> > ==============================================================
> > =============
> > To unsubscribe, send email to [EMAIL PROTECTED] and
> > include in the body
> > of the message "signoff JAVA3D-INTEREST".  For general help,
> > send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
>
> ==========================================================================To
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to