Print

Print


Commit in lcsim/src/org/lcsim/contrib/uiowa on MAIN
MIPReassignmentAlgorithm.java+1-11.6 -> 1.7
MJC: (contrib) Quick fix for null pointer crash

lcsim/src/org/lcsim/contrib/uiowa
MIPReassignmentAlgorithm.java 1.6 -> 1.7
diff -u -r1.6 -r1.7
--- MIPReassignmentAlgorithm.java	11 Jul 2008 19:00:56 -0000	1.6
+++ MIPReassignmentAlgorithm.java	11 Jul 2008 19:12:19 -0000	1.7
@@ -81,7 +81,7 @@
 		BasicCluster newmip = m_newMapMIP.get(tr);
 		List<Hep3Vector> lastTwoPositions = new ArrayList<Hep3Vector>();
 
-		if(newmip.getCalorimeterHits().size() < 5 || newmip == null){ //These is no mip close to track.
+		if(newmip == null || newmip.getCalorimeterHits().size() < 5){ //These is no mip close to track.
     		if (interceptPoint != null) {
 	        	tangent = m_findCluster.getTangent(); //tangent obtained using extrapolated track.
 			    tangentUnit = VecOp.unit(tangent);
CVSspam 0.2.8