jfclere     2002/06/22 09:47:55

  Modified:    jasper/src/share/org/apache/jasper/compiler
                        TldLocationsCache.java
  Log:
  Prevent nullpointerexception when wrong configuration.
  Submitted by: Ian Darwin ian at darwinsys.com
  
  Revision  Changes    Path
  1.11      +4 -0      
jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/TldLocationsCache.java
  
  Index: TldLocationsCache.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/TldLocationsCache.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- TldLocationsCache.java    2 Apr 2002 16:10:39 -0000       1.10
  +++ TldLocationsCache.java    22 Jun 2002 16:47:55 -0000      1.11
  @@ -200,6 +200,10 @@
       {
   
           Set libSet = ctxt.getResourcePaths("/WEB-INF/lib");
  +        if (libSet == null) {
  +            System.err.println("processJars: cannot find /WEB-INF/lib");
  +            return;
  +        }
           Iterator it = libSet.iterator();
           while (it.hasNext()) {
               String resourcePath = (String) it.next();
  
  
  

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

Reply via email to