Author: michiel
Date: 2010-02-18 17:21:32 +0100 (Thu, 18 Feb 2010)
New Revision: 41136

Modified:
   mmbase/branches/MMBase-1_8/src/org/mmbase/util/Casting.java
Log:
backported a small detail, this makes NodeLists successfully cast to Node (the 
first one)

Modified: mmbase/branches/MMBase-1_8/src/org/mmbase/util/Casting.java
===================================================================
--- mmbase/branches/MMBase-1_8/src/org/mmbase/util/Casting.java 2010-02-18 
14:36:21 UTC (rev 41135)
+++ mmbase/branches/MMBase-1_8/src/org/mmbase/util/Casting.java 2010-02-18 
16:21:32 UTC (rev 41136)
@@ -551,7 +551,7 @@
         } else if (i instanceof Map) {
             res = new MapNode((Map)i, cloud);
         } else if (i != null && !i.equals("")) {
-            res = cloud.getNode(i.toString());
+            res = cloud.getNode(toString(i));
         }
         return res;
     }

_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to