Hi! There is a bug in org.apache.cocoon.environment.http.HttpRequest: method getParameterValues( String name ) throws NullPointerException if HttpServletRequest.getParameterValues(name) returns null.
This happens if, for example, a web application expects a form to submit several fields with the same name, but it doesn't (or when these inputs are cleared checkboxes). -- Ivan Mikushin, OpenMechanics.net
--- HttpRequest.java Fri Nov 1 15:33:09 2002 +++ HttpRequest.java Fri Nov 1 16:06:30 2002 @@ -297,6 +297,7 @@ } private String decode(String str) { + if( str == null ) return null; try { if (this.container_encoding == null) this.container_encoding = "ISO-8859-1"; @@ -314,6 +315,7 @@ public String[] getParameterValues(String name) { String[] values = this.req.getParameterValues(name); + if (values == null) return null; if (this.form_encoding == null) { return values; }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]