diff options
author | paulby <[email protected]> | 2007-11-14 01:46:13 +0000 |
---|---|---|
committer | paulby <[email protected]> | 2007-11-14 01:46:13 +0000 |
commit | 50e86dcc01cca6a7c5c2dc9a135e4ab7f70a1f09 (patch) | |
tree | 7807304379220fc12f8981aadffcbffa801600c3 /src/classes | |
parent | 3711e80a6191e5adca5e3ef027882912746ed064 (diff) |
Fix for issue 540, ArrayIndexOutOfBoundsException
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@871 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/classes')
-rw-r--r-- | src/classes/share/javax/media/j3d/GroupRetained.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/classes/share/javax/media/j3d/GroupRetained.java b/src/classes/share/javax/media/j3d/GroupRetained.java index 80b6e81..b006df0 100644 --- a/src/classes/share/javax/media/j3d/GroupRetained.java +++ b/src/classes/share/javax/media/j3d/GroupRetained.java @@ -1331,6 +1331,12 @@ class GroupRetained extends NodeRetained implements BHLeafInterface { int i=0; NodeRetained child; + // Fix for issue 540 + if (children.size()==0) { + return; + } + // End fix for issue 540 + for (i = 0; i < nchild; i++) { child = (NodeRetained)children.get(i); if(child != null) |