Skip to content

Commit f98b4ed

Browse files
committed
Fix IOOBE with finally var remapping
1 parent 6722ca4 commit f98b4ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/org/jetbrains/java/decompiler/modules/decompiler/FinallyProcessor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,9 @@ private boolean compareBasicBlocksEx(ControlFlowGraph graph,
823823
seq.addInstruction(0, seqSample.getInstr(i), -1);
824824
oldOffsets.addFirst(sample.getOldOffset(i));
825825
seqSample.removeInstruction(i);
826-
instrOldOffsetsSample.remove(i);
826+
if (i < instrOldOffsetsSample.size()) {
827+
instrOldOffsetsSample.remove(i);
828+
}
827829
}
828830

829831
BasicBlock newblock = new BasicBlock(++graph.last_id);

0 commit comments

Comments
 (0)