lcsim-contrib/src/main/java/org/lcsim/contrib/onoprien/crux/mctruth
diff -u -r1.6 -r1.7
--- MCTruthCrux.java 3 Mar 2009 21:25:31 -0000 1.6
+++ MCTruthCrux.java 9 Mar 2009 22:35:06 -0000 1.7
@@ -27,7 +27,7 @@
* weights are calculated for each type of reconstructed object.
*
* @author D. Onoprienko
- * @version $Id: MCTruthCrux.java,v 1.6 2009/03/03 21:25:31 onoprien Exp $
+ * @version $Id: MCTruthCrux.java,v 1.7 2009/03/09 22:35:06 onoprien Exp $
*/
public class MCTruthCrux {
@@ -86,7 +86,7 @@
boolean needToSet = false;
List<Collection<T>> colList = null;
- if (collectionNames.length == 0) { // called with no names
+ if (collectionNames == null || collectionNames.length == 0) { // called with no names
out = _defMaps.get(type);
if (out == null) {
collectionNames = _driver._defaultNames.get(type);