GeomConverter/src/org/lcsim/detector
diff -u -r1.42 -r1.43
--- DetectorElement.java 18 Mar 2009 04:44:06 -0000 1.42
+++ DetectorElement.java 25 Mar 2009 01:05:01 -0000 1.43
@@ -15,7 +15,7 @@
* Implementation of {@link IDetectorElement}.
*
* @author Jeremy McCormick
- * @version $Id: DetectorElement.java,v 1.42 2009/03/18 04:44:06 jeremy Exp $
+ * @version $Id: DetectorElement.java,v 1.43 2009/03/25 01:05:01 jeremy Exp $
*/
public class DetectorElement
implements IDetectorElement
@@ -653,9 +653,9 @@
// Check if no matches were found.
// FIXME: Should this throw an exception or just return null?
- if (matches.size() < 0)
+ if (matches.size() == 0)
{
- throw new RuntimeException("A DetectorElement for the path component " + path[i] + " was not found.");
+ throw new RuntimeException("A DetectorElement for the path component <" + path[i] + "> was not found.");
}
de = matches.get(0);