aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/classes/share/javax/media/j3d/PickInfo.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/classes/share/javax/media/j3d/PickInfo.java b/src/classes/share/javax/media/j3d/PickInfo.java
index b508c49..343c9f6 100644
--- a/src/classes/share/javax/media/j3d/PickInfo.java
+++ b/src/classes/share/javax/media/j3d/PickInfo.java
@@ -841,6 +841,10 @@ public class PickInfo extends Object {
for (int j = 0; j < ((Shape3D)pickNode).numGeometries(); j++) {
Geometry geo = ((Shape3D)pickNode).getGeometry(j);
+ if(geo == null) {
+ continue;
+ }
+
if(!geo.getCapability(Geometry.ALLOW_INTERSECT)) {
throw new CapabilityNotSetException(J3dI18N.getString("PickInfo1"));
}
@@ -904,6 +908,10 @@ public class PickInfo extends Object {
for (int j = 0; j < numGeo; j++) {
GeometryArray geo = ((Morph)pickNode).getGeometryArray(j);
+ if(geo == null) {
+ continue;
+ }
+
if(!geo.getCapability(Geometry.ALLOW_INTERSECT)) {
throw new CapabilityNotSetException(J3dI18N.getString("PickInfo1"));
}