Update of /var/cvs/src/org/mmbase/framework In directory james.mmbase.org:/tmp/cvs-serv16391
Modified Files: Utils.java Log Message: avoid null values See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/framework Index: Utils.java =================================================================== RCS file: /var/cvs/src/org/mmbase/framework/Utils.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -r1.9 -r1.10 --- Utils.java 16 Jan 2009 08:24:47 -0000 1.9 +++ Utils.java 16 Jan 2009 21:17:42 -0000 1.10 @@ -28,7 +28,7 @@ * Static utilitiy methods which are related to (combine functionality of) other classes in the packages. * * @author Michiel Meeuwissen - * @version $Id: Utils.java,v 1.9 2009/01/16 08:24:47 michiel Exp $ + * @version $Id: Utils.java,v 1.10 2009/01/16 21:17:42 michiel Exp $ * @since MMBase-1.9 */ public abstract class Utils { @@ -80,7 +80,13 @@ /// convert using the xsl and spit out that. Source xml = new StreamSource(inputStream); Result res = new StreamResult(w); - Map<String, Object> params = new HashMap<String, Object>(blockParameters.toMap()); + + Map<String, Object> params = new HashMap<String, Object>(); + for (Map.Entry<String, Object> entry : blockParameters.toMap()) { + if (entry.getValue() != null) { + params.put(entry.getKey(), enry.getValue()); + } + } /* String context = ((javax.servlet.http.HttpServletRequest)pageContext.getRequest()).getContextPath(); _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs