From: chiba Date: Wed, 7 Nov 2007 02:48:45 +0000 (+0000) Subject: added the javassist.JarDirClassPath class. X-Git-Tag: rel_3_17_1_ga~228 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0f2a4bf5d297b201d7058b4833b42de76d2e28b3;p=javassist.git added the javassist.JarDirClassPath class. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@414 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- 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 {