diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPrinter.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPrinter.java index ba6e8ac5..797d5727 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPrinter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPrinter.java @@ -76,6 +76,9 @@ public class InstructionPrinter implements Opcodes { } private void precalculateLabelIndexes(MethodNode m) { + if(m == null) + return; + int lIdx = 0; for (AbstractInsnNode ain : m.instructions) { if (ain.getType() == AbstractInsnNode.LABEL) {