From 824168fbeb789d8232d3b4704c8750b31a811376 Mon Sep 17 00:00:00 2001 From: Kevin Rushforth Date: Tue, 5 Jun 2007 00:11:37 +0000 Subject: 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 --- src/classes/share/javax/media/j3d/GroupRetained.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3