tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/connector Request.java
Date Tue, 03 Aug 2004 19:42:39 GMT
luehe       2004/08/03 12:42:39

  Modified:    catalina/src/share/org/apache/catalina/connector
                        Request.java
  Log:
  Protect against potential NPE
  
  Revision  Changes    Path
  1.10      +2 -2      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/connector/Request.java
  
  Index: Request.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/connector/Request.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Request.java	23 Jul 2004 07:16:41 -0000	1.9
  +++ Request.java	3 Aug 2004 19:42:38 -0000	1.10
  @@ -1876,7 +1876,7 @@
        */
       public String getQueryString() {
           String queryString = coyoteRequest.queryString().toString();
  -        if (queryString.equals("")) {
  +        if (queryString == null || queryString.equals("")) {
               return (null);
           } else {
               return queryString;
  
  
  

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