Update of /var/cvs/src/org/mmbase/module/core
In directory james.mmbase.org:/tmp/cvs-serv17432

Modified Files:
        MMObjectBuilder.java 
Log Message:
one slash too many


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/module/core


Index: MMObjectBuilder.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/module/core/MMObjectBuilder.java,v
retrieving revision 1.435
retrieving revision 1.436
diff -u -b -r1.435 -r1.436
--- MMObjectBuilder.java        9 Oct 2008 13:13:12 -0000       1.435
+++ MMObjectBuilder.java        12 Nov 2008 18:36:56 -0000      1.436
@@ -62,7 +62,7 @@
  * @author Rob van Maris
  * @author Michiel Meeuwissen
  * @author Ernst Bunders
- * @version $Id: MMObjectBuilder.java,v 1.435 2008/10/09 13:13:12 michiel Exp $
+ * @version $Id: MMObjectBuilder.java,v 1.436 2008/11/12 18:36:56 michiel Exp $
  */
 public class MMObjectBuilder extends MMTable implements NodeEventListener, 
RelationEventListener {
 
@@ -1838,6 +1838,7 @@
         }
 
         if (function.equals("age")) {
+            if (node == null) return -1;
             Integer val = Integer.valueOf(node.getAge());
             return val.toString();
         } else if (function.equals("wap")) {
@@ -2564,7 +2565,7 @@
      */
 
     public String getConfigResource() {
-        return "builders/" + getXMLPath() + "/" + getTableName() + ".xml";
+        return "builders/" + getXMLPath() + getTableName() + ".xml";
     }
 
     /**
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to