aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/classes/share/javax/media/j3d/RenderingEnvironmentStructure.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/classes/share/javax/media/j3d/RenderingEnvironmentStructure.java b/src/classes/share/javax/media/j3d/RenderingEnvironmentStructure.java
index 1491e5e..650b34e 100644
--- a/src/classes/share/javax/media/j3d/RenderingEnvironmentStructure.java
+++ b/src/classes/share/javax/media/j3d/RenderingEnvironmentStructure.java
@@ -1061,8 +1061,9 @@ class RenderingEnvironmentStructure extends J3dStructure implements ObjectUpdate
for (i=0 ; i<size; i++) {
clip = (ClipRetained)globalClips.get(i);
- if (clip.transformedRegion.intersect(bounds) == true
- && clip.switchState.currentSwitchOn) {
+ if (clip.transformedRegion != null &&
+ clip.transformedRegion.intersect(bounds) == true &&
+ clip.switchState.currentSwitchOn) {
intersectedBounds[nclips] = clip.transformedRegion;
intersectedClips[nclips++] = clip;
}