cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/environment/http HttpRequest.java
Date Fri, 19 Apr 2002 12:11:51 GMT
cziegeler    02/04/19 05:11:50

  Modified:    src/java/org/apache/cocoon/environment/http HttpRequest.java
  Log:
  Fixing NPE
  PR: 8277
  
  Revision  Changes    Path
  1.7       +5 -5      xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpRequest.java
  
  Index: HttpRequest.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpRequest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- HttpRequest.java	24 Feb 2002 11:10:58 -0000	1.6
  +++ HttpRequest.java	19 Apr 2002 12:11:50 -0000	1.7
  @@ -67,7 +67,7 @@
    * to provide request information for HTTP servlets.
    *
    * @author <a href="mailto:giacomo@apache,org">Giacomo Pati</a>
  - * @version CVS $Id: HttpRequest.java,v 1.6 2002/02/24 11:10:58 dims Exp $
  + * @version CVS $Id: HttpRequest.java,v 1.7 2002/04/19 12:11:50 cziegeler Exp $
    */
   
   public class HttpRequest implements Request {
  @@ -287,10 +287,10 @@
   
       public String getParameter(String name) {
           String value = this.req.getParameter(name);
  -            if (this.form_encoding == null) {
  -                return value;
  -            }
  -            return decode(value);
  +        if (this.form_encoding == null || value == null) {
  +            return value;
  +        }
  +        return decode(value);
       }
   
       private String decode(String str) {
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message