diff --git a/brut.apktool.smali/dexlib2/src/main/java/org/jf/dexlib2/builder/MutableMethodImplementation.java b/brut.apktool.smali/dexlib2/src/main/java/org/jf/dexlib2/builder/MutableMethodImplementation.java index d536451f..f734e018 100644 --- a/brut.apktool.smali/dexlib2/src/main/java/org/jf/dexlib2/builder/MutableMethodImplementation.java +++ b/brut.apktool.smali/dexlib2/src/main/java/org/jf/dexlib2/builder/MutableMethodImplementation.java @@ -213,8 +213,10 @@ public class MutableMethodImplementation implements MethodImplementation { return; } int codeAddress = instructionList.get(index).getCodeAddress(); + MethodLocation newLoc = new MethodLocation(instruction, codeAddress, index); + instructionList.add(index, newLoc); + instruction.location = newLoc; - instructionList.add(index, new MethodLocation(instruction, codeAddress, index)); codeAddress += instruction.getCodeUnits(); for (int i=index+1; i