do not fail on clinit decompile error

master
Egor.Ushakov 8 years ago
parent 17d4894848
commit 4da62061d9
  1. 2
      src/org/jetbrains/java/decompiler/modules/decompiler/SwitchHelper.java

@ -42,7 +42,7 @@ public class SwitchHelper {
DecompilerContext.getClassProcessor().getMapRootClasses().get(arrayField.getClassname());
if (classNode != null) {
MethodWrapper wrapper = classNode.getWrapper().getMethodWrapper(CodeConstants.CLINIT_NAME, "()V");
if (wrapper != null) {
if (wrapper != null && wrapper.root != null) {
wrapper.getOrBuildGraph().iterateExprents(new DirectGraph.ExprentIterator() {
@Override
public int processExprent(Exprent exprent) {

Loading…
Cancel
Save