Commit in lcsim/src/org/lcsim/recon/pfa/identifier on MAIN
LocalHelixExtrapolator.java+3-31.14 -> 1.15
MJC: Avoid null-pointer crash

lcsim/src/org/lcsim/recon/pfa/identifier
LocalHelixExtrapolator.java 1.14 -> 1.15
diff -u -r1.14 -r1.15
--- LocalHelixExtrapolator.java	21 Aug 2008 18:36:07 -0000	1.14
+++ LocalHelixExtrapolator.java	31 Aug 2008 18:48:13 -0000	1.15
@@ -404,7 +404,7 @@
 	    id = m_event.getDetector().getDecoder("EcalEndcapHits");
 	    if (id == null) { throw new AssertionError("Failed to find endcap ID"); }
 	}
-	if (id != null) {
+	if (id != null && point != null) {
 	    long cell = id.findCellContainingXYZ(point);
 	    id.setID(cell);
 	    Hep3Vector cellCenter = id.getPositionVector();
@@ -424,7 +424,7 @@
 	    id = m_event.getDetector().getDecoder("HcalEndcapHits");
 	    if (id == null) { throw new AssertionError("Failed to find endcap ID"); }
 	}
-	if (id != null) {
+	if (id != null && point != null) {
 	    long cell = id.findCellContainingXYZ(point);
 	    id.setID(cell);
 	    Hep3Vector cellCenter = id.getPositionVector();
@@ -444,7 +444,7 @@
 	    id = m_event.getDetector().getDecoder("MuonEndcapHits");
 	    if (id == null) { throw new AssertionError("Failed to find endcap ID"); }
 	}
-	if (id != null) {
+	if (id != null && point != null) {
 	    long cell = id.findCellContainingXYZ(point);
 	    id.setID(cell);
 	    Hep3Vector cellCenter = id.getPositionVector();
CVSspam 0.2.8