diff --git a/jadx-core/src/main/java/jadx/core/dex/nodes/MethodNode.java b/jadx-core/src/main/java/jadx/core/dex/nodes/MethodNode.java index df3654a1d91..8ad22bc6642 100644 --- a/jadx-core/src/main/java/jadx/core/dex/nodes/MethodNode.java +++ b/jadx-core/src/main/java/jadx/core/dex/nodes/MethodNode.java @@ -88,6 +88,7 @@ public MethodNode(ClassNode classNode, Method mthData, boolean isVirtual) { @Override public void unload() { + regsCount = -1; if (noCode) { return; } @@ -106,6 +107,10 @@ public void unload() { @Override public void load() throws DecodeException { + if (regsCount != -1) { + // method already loaded + return; + } try { if (noCode) { regsCount = 0;