Fix for NullPointerException on detach()tags/rel_3_29_0_ga
@@ -1423,7 +1423,7 @@ public abstract class CtClass { | |||
public void detach() { | |||
ClassPool cp = getClassPool(); | |||
CtClass obj = cp.removeCached(getName()); | |||
if (obj != this) | |||
if (obj != null && obj != this) | |||
cp.cacheCtClass(getName(), obj, false); | |||
} | |||