Group, I am calling the following code snippet:
StoreInstruction si = (StoreInstruction)instruction; int index = si.getIndex(); int pc = ihs[i].getPosition() + 2; LocalVariable lv = lvt.getLocalVariable(index, pc); if(lv == null) { System.out.println("[ERROR] unable to locate assigned variable name. "); System.out.println("[*] pc " + pc + " index " + index); System.out.println(lvt.toString()); return; } The result of "getLocalVariable" is null for a particular local variable and I cant figure out why. Below is a result of the 'System.out.println()'s' found in the previous code segment: [ERROR] unable to locate assigned variable name. [*] pc 472 index 6 LocalVariable(start_pc = 346, length = 76, index = 11:int i) LocalVariable(start_pc = 266, length = 201, index = 6:String[] fields) LocalVariable(start_pc = 277, length = 190, index = 7:int id) LocalVariable(start_pc = 311, length = 156, index = 8:org.apache.ecs.html.Table t) LocalVariable(start_pc = 334, length = 133, index = 9:org.apache.ecs.html.TR header) LocalVariable(start_pc = 343, length = 124, index = 10:org.apache.ecs.html.TR results) LocalVariable(start_pc = 472, length = 0, index = 6:Exception e) LocalVariable(start_pc = 485, length = 103, index = 6:org.apache.ecs.html.A a) LocalVariable(start_pc = 593, length = 34, index = 6:Exception e) LocalVariable(start_pc = 0, length = 629, index = 0:org.owasp.webgoat.lessons.WSDLScanning this) LocalVariable(start_pc = 0, length = 629, index = 1:org.owasp.webgoat.session.WebSession s) LocalVariable(start_pc = 8, length = 621, index = 2:org.apache.ecs.ElementContainer ec) LocalVariable(start_pc = 24, length = 605, index = 3:org.apache.ecs.html.Table t1) LocalVariable(start_pc = 46, length = 583, index = 4:org.apache.ecs.html.TR tr) LocalVariable(start_pc = 218, length = 411, index = 5:org.apache.ecs.Element b) The variable appears to exist (the line - LocalVariable(start_pc = 472, length = 0, index = 6:Exception e) ) but getLocalVariable returns null. Any ideas why? Does "length = 0" have any significance? As usual, thanks in advance for everyones input! -Eric