From 7cd2a7db55d56f335ecec7a7514713a40129ed0c Mon Sep 17 00:00:00 2001 From: REAndroid Date: Fri, 5 Apr 2024 21:40:02 +0200 Subject: [PATCH] [DEX] Rebuild labels after debug remove --- src/main/java/com/reandroid/dex/data/CodeItem.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/reandroid/dex/data/CodeItem.java b/src/main/java/com/reandroid/dex/data/CodeItem.java index 352ece862..77a484439 100644 --- a/src/main/java/com/reandroid/dex/data/CodeItem.java +++ b/src/main/java/com/reandroid/dex/data/CodeItem.java @@ -121,7 +121,11 @@ public DebugInfo getOrCreateDebugInfo(){ return header.debugInfoOffset.getOrCreateUniqueItem(this); } public void removeDebugInfo(){ + if(getDebugInfo() == null){ + return; + } setDebugInfo(null); + getInstructionList().reBuildExtraLines(); } public void setDebugInfo(DebugInfo debugInfo){ header.debugInfoOffset.setItem(debugInfo);