tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfarc...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/servlet JspServlet.java
Date Wed, 29 Jan 2003 17:04:22 GMT
jfarcand    2003/01/29 09:04:22

  Modified:    jasper2/src/share/org/apache/jasper/servlet JspServlet.java
  Log:
  FIX a NPE exception when the enumeration is null.
  
  Revision  Changes    Path
  1.20      +11 -8     jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/servlet/JspServlet.java
  
  Index: JspServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/servlet/JspServlet.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- JspServlet.java	28 Jan 2003 18:15:49 -0000	1.19
  +++ JspServlet.java	29 Jan 2003 17:04:21 -0000	1.20
  @@ -230,11 +230,14 @@
   		log.debug("\t     QueryString: " + request.getQueryString());
   		log.debug("\t  Request Params: ");
   		Enumeration e = request.getParameterNames();
  -		while (e.hasMoreElements()) {
  -		    String name = (String) e.nextElement();
  -		    log.debug("\t\t " + name + " = " +
  -                              request.getParameter(name));
  -		}
  +
  +                if (e != null) {
  +                    while (e.hasMoreElements()) {
  +                        String name = (String) e.nextElement();
  +                        log.info("\t\t " + name + " = " +
  +                                 request.getParameter(name));
  +                    }
  +                }
   	    }
               serviceJspFile(request, response, jspUri, null, precompile);
   	} catch (RuntimeException e) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message