aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/ClassPoolTail.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2007-11-07 02:48:45 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2007-11-07 02:48:45 +0000
commit0f2a4bf5d297b201d7058b4833b42de76d2e28b3 (patch)
treecdacb3cc14f20fbeb98bbe92a5e804e0c3643806 /src/main/javassist/ClassPoolTail.java
parenta9d3c7bd1da63565c9fd2937a9121bbe6a02c4bc (diff)
downloadjavassist-0f2a4bf5d297b201d7058b4833b42de76d2e28b3.tar.gz
javassist-0f2a4bf5d297b201d7058b4833b42de76d2e28b3.zip
added the javassist.JarDirClassPath class.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@414 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/ClassPoolTail.java')
-rw-r--r--src/main/javassist/ClassPoolTail.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/javassist/ClassPoolTail.java b/src/main/javassist/ClassPoolTail.java
index 8b6dfabc..d3d1a51f 100644
--- a/src/main/javassist/ClassPoolTail.java
+++ b/src/main/javassist/ClassPoolTail.java
@@ -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 {