aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/share
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/share')
-rw-r--r--src/classes/share/javax/media/j3d/PickInfo.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/classes/share/javax/media/j3d/PickInfo.java b/src/classes/share/javax/media/j3d/PickInfo.java
index 24e416d..b508c49 100644
--- a/src/classes/share/javax/media/j3d/PickInfo.java
+++ b/src/classes/share/javax/media/j3d/PickInfo.java
@@ -794,7 +794,8 @@ public class PickInfo extends Object {
}
// We're done with PICK_BOUNDS case, but there is still more work for PICK_GEOMETRY case.
- if((mode == PICK_GEOMETRY) && ((pickInfoListSize = pickInfoList.size()) > 0)) {
+ if((mode == PICK_GEOMETRY) && (pickInfoList != null) &&
+ ((pickInfoListSize = pickInfoList.size()) > 0)) {
//System.out.println("PickInfo.pick() - In geometry case : pickInfoList.size() is " + pickInfoListSize);
PickInfo pickInfo = null;