]> source.dussan.org Git - javassist.git/commitdiff
added the javassist.JarDirClassPath class.
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Wed, 7 Nov 2007 02:48:45 +0000 (02:48 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Wed, 7 Nov 2007 02:48:45 +0000 (02:48 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@414 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/ClassPoolTail.java

index 8b6dfabc13983d42ba08099e9d5c5552a724a51e..d3d1a51f4a716cf9ea1959a8256b1ffd1e45278e 100644 (file)
@@ -83,9 +83,11 @@ final class JarDirClassPath implements ClassPath {
             }
         });
 
-        jars = new JarClassPath[files.length];
-        for (int i = 0; i < files.length; i++)
-            jars[i] = new JarClassPath(files[i].getPath());
+        if (files != null) {
+            jars = new JarClassPath[files.length];
+            for (int i = 0; i < files.length; i++)
+                jars[i] = new JarClassPath(files[i].getPath());
+        }
     }
 
     public InputStream openClassfile(String classname) throws NotFoundException {