aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChien Yang <[email protected]>2005-10-26 22:52:45 +0000
committerChien Yang <[email protected]>2005-10-26 22:52:45 +0000
commit88dba20f8d32240c535341b4e16e9218a715acc7 (patch)
tree224e7dab4d5771f238a956ec65e1d48028d60a37 /src
parentafbcb168442d8c8d8cf8a814337bbf1bc69939aa (diff)
Fixed 1 of 2 bugs reported in issue186 : Using new Pick API with PickSegment always returns null.
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@449 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src')
-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;