From 4da62061d98f3fee980af8b2ea977cb8f8171a7e Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Fri, 5 May 2017 16:06:56 +0300 Subject: [PATCH] do not fail on clinit decompile error --- .../java/decompiler/modules/decompiler/SwitchHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/SwitchHelper.java b/src/org/jetbrains/java/decompiler/modules/decompiler/SwitchHelper.java index cf935f4..6bf5975 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/SwitchHelper.java +++ b/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) {