From 0f2a4bf5d297b201d7058b4833b42de76d2e28b3 Mon Sep 17 00:00:00 2001 From: chiba Date: Wed, 7 Nov 2007 02:48:45 +0000 Subject: [PATCH] added the javassist.JarDirClassPath class. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@414 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/main/javassist/ClassPoolTail.java | 8 +++++--- 1 file 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 { -- 2.39.5