From 46f4102cecc82f20ed7d5a601f2486df2c0c7522 Mon Sep 17 00:00:00 2001 From: hoenicke Date: Tue, 4 Jul 2000 15:55:54 +0000 Subject: [PATCH] Reading of LocalVariableTable entries fixed. git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1252 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/bytecode/BasicBlockReader.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jode/jode/bytecode/BasicBlockReader.java b/jode/jode/bytecode/BasicBlockReader.java index 8248500..24ab8da 100644 --- a/jode/jode/bytecode/BasicBlockReader.java +++ b/jode/jode/bytecode/BasicBlockReader.java @@ -849,11 +849,11 @@ class BasicBlockReader implements Opcodes { LVTEntry lve = new LVTEntry(); lve.start = input.readUnsignedShort(); lve.end = lve.start + input.readUnsignedShort(); - int slot = input.readUnsignedShort(); int nameIndex = input.readUnsignedShort(); int typeIndex = input.readUnsignedShort(); - if (cp.getTag(nameIndex) != cp.UTF8 - || cp.getTag(typeIndex) != cp.UTF8) { + int slot = input.readUnsignedShort(); + if (nameIndex == 0 || cp.getTag(nameIndex) != cp.UTF8 + || typeIndex == 0 || cp.getTag(typeIndex) != cp.UTF8) { // This is probably an evil lvt as created by HashJava // simply ignore it.