From 88dba20f8d32240c535341b4e16e9218a715acc7 Mon Sep 17 00:00:00 2001 From: Chien Yang Date: Wed, 26 Oct 2005 22:52:45 +0000 Subject: 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 --- src/classes/share/javax/media/j3d/PickInfo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/classes/share') 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; -- cgit v1.2.3