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

Reply via email to