Update of 
/var/cvs/contributions/didactor2/src/education/java/nl/didactor/education
In directory 
james.mmbase.org:/tmp/cvs-serv15048/education/java/nl/didactor/education

Modified Files:
        Functions.java 
Log Message:



See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/education/java/nl/didactor/education


Index: Functions.java
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/java/nl/didactor/education/Functions.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- Functions.java      20 Nov 2008 15:09:40 -0000      1.6
+++ Functions.java      2 Jan 2009 09:36:10 -0000       1.7
@@ -9,7 +9,7 @@
 /**
  * Several functions on mmbase nodes which are used by didactor.
  * @author Michiel Meeuwissen
- * @version $Id: Functions.java,v 1.6 2008/11/20 15:09:40 michiel Exp $
+ * @version $Id: Functions.java,v 1.7 2009/01/02 09:36:10 michiel Exp $
  */
 public class Functions {
     protected final static Logger log = 
Logging.getLoggerInstance(Functions.class);
@@ -30,7 +30,9 @@
         result.add(node.getNumber());
         NodeList parents = node.getRelatedNodes("learnobjects", "posrel", 
"source");
         while (parents.size() > 0) {
-            assert parents.size() == 1 : "Node " + node.getNumber() + " has 
more than 1 posrel parents";
+            if (parents.size() > 1) {
+                log.warn("Node " + node.getNumber() + " has more than 1 posrel 
parents: " + parents);
+            }
             Node parent = parents.getNode(0);
             if (result.contains(parent.getNumber())) break;
             result.add(parent.getNumber());
_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to