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: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]