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/core ApplicationContext.java
Date Tue, 12 Aug 2003 23:01:36 GMT
luehe       2003/08/12 16:01:36

  Modified:    catalina/src/share/org/apache/catalina/core
                        ApplicationContext.java
  Log:
  Avoid NPE when ensuring that resource path start with '/'
  
  Revision  Changes    Path
  1.16      +5 -5      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ApplicationContext.java
  
  Index: ApplicationContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ApplicationContext.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ApplicationContext.java	9 Aug 2003 19:04:29 -0000	1.15
  +++ ApplicationContext.java	12 Aug 2003 23:01:36 -0000	1.16
  @@ -520,7 +520,7 @@
       public URL getResource(String path)
           throws MalformedURLException {
   
  -        if (!path.startsWith("/")) {
  +        if (path == null || !path.startsWith("/")) {
               throw new MalformedURLException(sm.getString("applicationContext.requestDispatcher.iae",
path));
           }
           
  
  
  

Mime
View raw message