aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes
diff options
context:
space:
mode:
authorKevin Rushforth <[email protected]>2007-06-05 00:11:37 +0000
committerKevin Rushforth <[email protected]>2007-06-05 00:11:37 +0000
commit824168fbeb789d8232d3b4704c8750b31a811376 (patch)
tree4467a42704559f2549f2927c6c7eac4903909b50 /src/classes
parent7352c251d42d5f7058904425a0b6f8d79de8b095 (diff)
Fixed issue 494: Group.moveto(null) throws a NullPointerException
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@854 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/classes')
-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) {