remm        2002/06/05 16:18:33

  Modified:    jasper2/src/share/org/apache/jasper/compiler
                        TldLocationsCache.java
  Log:
  - getResourcePaths now returns null if the path does not exist.
  
  Revision  Changes    Path
  1.3       +7 -5      
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TldLocationsCache.java
  
  Index: TldLocationsCache.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TldLocationsCache.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TldLocationsCache.java    24 Apr 2002 02:21:05 -0000      1.2
  +++ TldLocationsCache.java    5 Jun 2002 23:18:33 -0000       1.3
  @@ -200,11 +200,13 @@
       {
   
           Set libSet = ctxt.getResourcePaths("/WEB-INF/lib");
  -        Iterator it = libSet.iterator();
  -        while (it.hasNext()) {
  -            String resourcePath = (String) it.next();
  -            if (resourcePath.endsWith(".jar")) 
  -                tldConfigJar(ctxt, resourcePath);
  +        if (libSet != null) {
  +            Iterator it = libSet.iterator();
  +            while (it.hasNext()) {
  +                String resourcePath = (String) it.next();
  +                if (resourcePath.endsWith(".jar")) 
  +                    tldConfigJar(ctxt, resourcePath);
  +            }
           }
   
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to