cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ovi...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/scheme/sitemap SchemeEnvironmentFunctions.java
Date Sat, 16 Feb 2002 01:45:12 GMT
ovidiu      02/02/15 17:45:12

  Modified:    src/scratchpad/schecoon/src/org/apache/cocoon/scheme/sitemap
                        SchemeEnvironmentFunctions.java
  Log:
  (getRequestParameter): Check returned value for null.
  
  Revision  Changes    Path
  1.2       +1 -1      xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/scheme/sitemap/SchemeEnvironmentFunctions.java
  
  Index: SchemeEnvironmentFunctions.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/scheme/sitemap/SchemeEnvironmentFunctions.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SchemeEnvironmentFunctions.java	13 Feb 2002 01:47:51 -0000	1.1
  +++ SchemeEnvironmentFunctions.java	16 Feb 2002 01:45:12 -0000	1.2
  @@ -100,6 +100,6 @@
       Request request = (Request)objectModel.get(Constants.REQUEST_OBJECT);
   
       String value = request.getParameter(paramName);
  -    return new ImmutableString(value);
  +    return value == null ? null : new ImmutableString(value);
     }
   }
  
  
  

----------------------------------------------------------------------
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