aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/classes/share/javax/media/j3d/GroupRetained.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/classes/share/javax/media/j3d/GroupRetained.java b/src/classes/share/javax/media/j3d/GroupRetained.java
index 4caf826..80b6e81 100644
--- a/src/classes/share/javax/media/j3d/GroupRetained.java
+++ b/src/classes/share/javax/media/j3d/GroupRetained.java
@@ -503,7 +503,9 @@ class GroupRetained extends NodeRetained implements BHLeafInterface {
}
void moveTo(BranchGroup bg) {
- ((GroupRetained)bg.retained).dirtyBoundsCache();
+ if (bg != null) {
+ ((GroupRetained)bg.retained).dirtyBoundsCache();
+ }
if (this.source.isLive()) {
universe.resetWaitMCFlag();
synchronized (universe.sceneGraphLock) {