cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xslt XSLTProcessor.java
Date Sat, 08 Apr 2000 00:54:58 GMT
stefano     00/04/07 17:54:58

  Modified:    src/org/apache/cocoon/processor/xslt XSLTProcessor.java
  Log:
  fixed NPE when callling from the command line
  
  Revision  Changes    Path
  1.10      +7 -5      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.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- XSLTProcessor.java	2000/03/04 02:36:22	1.9
  +++ XSLTProcessor.java	2000/04/08 00:54:58	1.10
  @@ -1,4 +1,4 @@
  -/*-- $Id: XSLTProcessor.java,v 1.9 2000/03/04 02:36:22 stefano Exp $ --
  +/*-- $Id: XSLTProcessor.java,v 1.10 2000/04/08 00:54:58 stefano Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -70,7 +70,7 @@
    * This class implements an XSLT processor.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version $Revision: 1.9 $ $Date: 2000/03/04 02:36:22 $
  + * @version $Revision: 1.10 $ $Date: 2000/04/08 00:54:58 $
    */
   
   public class XSLTProcessor implements Actor, Processor, Status, Defaults {
  @@ -98,9 +98,11 @@
   
           Hashtable params = new Hashtable();
           Enumeration enum = request.getParameterNames();
  -        while (enum.hasMoreElements()) {
  -            String name = (String) enum.nextElement();
  -            params.put(name, request.getParameter(name));
  +        if (enum != null) {
  +            while (enum.hasMoreElements()) {
  +                String name = (String) enum.nextElement();
  +                params.put(name, request.getParameter(name));
  +            }
           }
   
           try {
  
  
  

Mime
View raw message