summaryrefslogtreecommitdiffstats
path: root/src/main/javassist/ClassPool.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2005-01-13 17:02:22 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2005-01-13 17:02:22 +0000
commite667c0de322c5d1b84263b3adb65b6213b974b40 (patch)
tree0f1de405b13ea1344cbdee07158c5b31076a9676 /src/main/javassist/ClassPool.java
parente793a77000f14fd8272388f7b2878a54e2d628ca (diff)
downloadjavassist-e667c0de322c5d1b84263b3adb65b6213b974b40.tar.gz
javassist-e667c0de322c5d1b84263b3adb65b6213b974b40.zip
fixed a few bugs.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@152 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/ClassPool.java')
-rw-r--r--src/main/javassist/ClassPool.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/javassist/ClassPool.java b/src/main/javassist/ClassPool.java
index 50143d6a..3e0ed6f5 100644
--- a/src/main/javassist/ClassPool.java
+++ b/src/main/javassist/ClassPool.java
@@ -248,6 +248,9 @@ public class ClassPool {
throws NotFoundException
{
CtClass clazz = get0(orgName, false);
+ if (clazz == null)
+ throw new NotFoundException(orgName);
+
if (clazz instanceof CtClassType)
((CtClassType)clazz).setClassPool(this);