From 55eaafd2d18fc469cad0d8c4c58ac8e54979c882 Mon Sep 17 00:00:00 2001 From: Konloch Date: Tue, 5 Jul 2022 01:39:49 -0500 Subject: [PATCH] Malicious Code Scanner Fix On the latest release the code scanner isn't functioning, this should allow it to work as normal again --- .../decompilers/bytecode/InstructionPrinter.java | 3 +++ 1 file changed, 3 insertions(+) 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) {