This website works better with JavaScript.
Home
Explore
Help
Sign In
mirrors
/
javassist
mirror of
https://github.com/jboss-javassist/javassist.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
57
Wiki
Activity
Browse Source
Fix for NullPointerException on detach()
tags/rel_3_29_0_ga
Burak Şahin
2 years ago
parent
047f7c71be
commit
018169818c
1 changed files
with
1 additions
and
1 deletions
Split View
Show Diff Stats
1
1
src/main/javassist/CtClass.java
+ 1
- 1
src/main/javassist/CtClass.java
View File
@@ -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);
}
Write
Preview
Loading…
Cancel
Save