> I think I remember something about Switch removing null references when > the Switch node is compiled.
That would explain the problem that I am running into... I guess it seem the proper thing to do is to throw an exception, because my application references all the switches via my own data structure and expects it to be there. My hack workaround to catch these null Shapes3D and not add them to the Switch. This fixes the undesirable behavior... but it would be nice if I can keep these objects in my data structure and simply have the Switch do nothing. Thanks to all who responded. cheers, Mona ================================================================== Mona Wong-Barnum National Center for Microscopy and Imaging Research University of California, San Diego http://ncmir.ucsd.edu/ "Circumstances don't make a man, they reveal him" -- James Allen ================================================================== =========================================================================== 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".