bug fix when lvt is broken

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1159 379699f6-c40d-0410-875b-85095c16579e
branch_1_1
jochen 25 years ago
parent 74001822d7
commit 853a315167
  1. 3
      jode/jode/bytecode/BytecodeInfo.java.in

@ -231,7 +231,8 @@ public class BytecodeInfo extends BinaryInfo implements Opcodes {
start >= 0 && start < instrs.length ? instrs[start] : null;
Instruction endInstr;
if (end >=0 && end < instrs.length)
endInstr = instrs[end].getPrevByAddr();
endInstr = instrs[end] == null ? null
: instrs[end].getPrevByAddr();
else {
endInstr = null;
for (int nr = instrs.length - 1; nr >= 0; nr--) {

Loading…
Cancel
Save