Charmaine Lee wrote:
 > Georg,
 >
 >     The NullPointerException is expected because the texture unit
state array
 > of the specified Appearance is null. This version of the
setTextureUnitState
 > is to modify an existing entry of the texture unit state array of
 > the Appearance. So for the first set, use the array version of
 > setTextureUnitState.

Well, I have exception at exactly same point, but this time it is not
possible to fix easily. I happens when I clone tree with forceDuplicate
set to true.

Artur



java.lang.NullPointerException
at javax.media.j3d.AppearanceRetained.setTextureUnitState(AppearanceReta
ined.java:665)
at javax.media.j3d.Appearance.duplicateAttributes(Appearance.java:861)
at javax.media.j3d.NodeComponent.checkDuplicateNodeComponent(NodeCompone
nt.java:111)
at javax.media.j3d.Appearance.duplicateNodeComponent(Appearance.java:772
)
at javax.media.j3d.Appearance.cloneNodeComponent(Appearance.java:760)
at javax.media.j3d.NodeComponent.cloneNodeComponent(NodeComponent.java:2
06)
at javax.media.j3d.SceneGraphObject.getNodeComponent(SceneGraphObject.ja
va:394)
at javax.media.j3d.Shape3D.duplicateAttributes(Shape3D.java:720)
at javax.media.j3d.Node.checkDuplicateNode(Node.java:645)
at javax.media.j3d.Shape3D.duplicateNode(Shape3D.java:687)
at javax.media.j3d.Shape3D.cloneNode(Shape3D.java:651)
at javax.media.j3d.Node.cloneTree(Node.java:531)
at javax.media.j3d.Group.cloneTree(Group.java:456)
at javax.media.j3d.Group.cloneTree(Group.java:456)
at javax.media.j3d.Group.cloneTree(Group.java:456)
at javax.media.j3d.Group.cloneTree(Group.java:456)
at javax.media.j3d.Node.cloneTree(Node.java:491)
at javax.media.j3d.Node.cloneTree(Node.java:341)
at net.sf.nwn.viewer.FilePanel$2.run(FilePanel.java:78)

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