required a little bit more touchup
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 17 Aug 2007 22:52:56 +0000 (22:52 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 17 Aug 2007 22:52:56 +0000 (22:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@567165 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/loader/VirtualWebappLoader.java

index b218e50..bcf0276 100755 (executable)
@@ -50,7 +50,7 @@ public class VirtualWebappLoader extends WebappLoader {
     /**
      * <code>;</code> separated list of additional path elements.
      */
-    private String virtualClasspath;
+    private String virtualClasspath = "";
 
     /**
      * Construct a new WebappLoader with no defined parent class loader (so that
@@ -86,7 +86,9 @@ public class VirtualWebappLoader extends WebappLoader {
         // repositories list before calling start on the standard WebappLoader
         StringTokenizer tkn = new StringTokenizer(virtualClasspath, ";");
         while (tkn!=null && tkn.hasMoreTokens()) {
-            File file = new File(tkn.nextToken());
+            String ftkn = tkn.nextToken();
+            if (ftkn==null) continue;
+            File file = new File(ftkn);
             if (!file.exists()) {
                 continue;
             }