Browse Source

fixes issue #209 (NPE in Exception)

tags/rel_3_24_0_rc
chibash 5 years ago
parent
commit
a3d1aa2513
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/main/javassist/util/proxy/DefineClassHelper.java

+ 2
- 1
src/main/javassist/util/proxy/DefineClassHelper.java View File

@@ -246,7 +246,8 @@ public class DefineClassHelper
throw e;
}
catch (ClassFormatError e) {
throw new CannotCompileException(e.getCause());
Throwable t = e.getCause();
throw new CannotCompileException(t == null ? e : t);
}
catch (Exception e) {
throw new CannotCompileException(e);

Loading…
Cancel
Save