summaryrefslogtreecommitdiffstats
path: root/src/main/javassist/ClassPool.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-05-03 17:38:30 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-05-03 17:38:30 +0000
commit1d249157debacc92bc2e4a833ed67dcdc8bad95c (patch)
treedcb6aa81dc9761490ac1e0062eedcc9264b7304d /src/main/javassist/ClassPool.java
parentb25388461bd32f33f3a4a188b5eeae957cbb080d (diff)
downloadjavassist-1d249157debacc92bc2e4a833ed67dcdc8bad95c.tar.gz
javassist-1d249157debacc92bc2e4a833ed67dcdc8bad95c.zip
added CtClass#getDeclaringClass()
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@96 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/ClassPool.java')
-rw-r--r--src/main/javassist/ClassPool.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/javassist/ClassPool.java b/src/main/javassist/ClassPool.java
index 054b56e1..8067940e 100644
--- a/src/main/javassist/ClassPool.java
+++ b/src/main/javassist/ClassPool.java
@@ -362,7 +362,12 @@ public class ClassPool {
* @param classname a fully-qualified class name.
*/
public CtClass get(String classname) throws NotFoundException {
- CtClass clazz = get0(classname, true);
+ CtClass clazz;
+ if (classname == null)
+ clazz = null;
+ else
+ clazz = get0(classname, true);
+
if (clazz == null)
throw new NotFoundException(classname);
else