Chauveau, Are you sure that your TG's is always initialized? So, not only
TransformGroup TG; but also: TransformGroupTG=new TransformGroup(); Dirk ----- Original Message ----- From: "Chauveau Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 31, 2003 4:50 PM Subject: [JAVA3D] transformGroup setUserData & getUserData > Hi all, > > I have a strange problem. In my project, I use: > > TransformGroup TG ; > ... > > TG.setUserData(myobject); > > ... > when I use : > > myobject = TG.getUserData(); > > Sometime it runs correctly. Sometime it has error because myobject gets > null. > > java.lang.NullPointerException. > > It seems it is not stable. Can anyboty give some clue about it? > > > Thanks a lot. > > _________________________________________________________________ > Help STOP SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > =========================================================================== > 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".
