From 853a315167430da78fd380b60ce7cf93270414d9 Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 4 Sep 1999 11:37:46 +0000 Subject: [PATCH] bug fix when lvt is broken git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1159 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/bytecode/BytecodeInfo.java.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jode/jode/bytecode/BytecodeInfo.java.in b/jode/jode/bytecode/BytecodeInfo.java.in index 1148da1..b16e499 100644 --- a/jode/jode/bytecode/BytecodeInfo.java.in +++ b/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--) {