You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by ba...@apache.org on 2001/05/23 01:05:59 UTC

cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xslt XSLTProcessor.java

balld       01/05/22 16:05:59

  Modified:    src/org/apache/cocoon/processor/xslt XSLTProcessor.java
  Log:
  patch from Pal Wester to fix NPE with iplanet
  
  Revision  Changes    Path
  1.33      +4 -4      xml-cocoon/src/org/apache/cocoon/processor/xslt/XSLTProcessor.java
  
  Index: XSLTProcessor.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xslt/XSLTProcessor.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- XSLTProcessor.java	2001/03/10 13:35:31	1.32
  +++ XSLTProcessor.java	2001/05/22 23:05:54	1.33
  @@ -1,4 +1,4 @@
  -/*-- $Id: XSLTProcessor.java,v 1.32 2001/03/10 13:35:31 greenrd Exp $ --
  +/*-- $Id: XSLTProcessor.java,v 1.33 2001/05/22 23:05:54 balld Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -75,7 +75,7 @@
    * This class implements an XSLT processor.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version $Revision: 1.32 $ $Date: 2001/03/10 13:35:31 $
  + * @version $Revision: 1.33 $ $Date: 2001/05/22 23:05:54 $
    */
   
   public class XSLTProcessor implements Actor, Processor, Status, Defaults, Cacheable {
  @@ -128,8 +128,8 @@
           if (parameters != null) {
               while (parameters.hasMoreElements()) {
                   String name = (String) parameters.nextElement();
  -                if (isValidName (name))
  -                    params.put (name, request.getParameter (name));
  +                if (isValidName(name))
  +                    params.put (name, request.getParameter(name) == null ? "" : request.getParameter(name));
               }
           }
   
  
  
  

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