From e36cac2a423be68483b5feeed4897441409f7df5 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 16 Sep 1998 11:13:00 +0000 Subject: [PATCH] Fixed a null pointer exception, when a local variable is not in the table This is important for finally and synchronized blocks. git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@14 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/decompiler/LocalVariableTable.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jode/jode/decompiler/LocalVariableTable.java b/jode/jode/decompiler/LocalVariableTable.java index c4fed19..ae97c6e 100644 --- a/jode/jode/decompiler/LocalVariableTable.java +++ b/jode/jode/decompiler/LocalVariableTable.java @@ -47,6 +47,8 @@ public class LocalVariableTable { throws ArrayIndexOutOfBoundsException { LocalVariableRangeList lv = locals[slot]; + if (lv == null) + lv = new LocalVariableRangeList(slot); return lv; } }