[BCEL-info]NULL Pointer exception in JasminVisitor
Brought to you by:
dahm
|
From: Alan O. <al...@ou...> - 2002-04-22 17:50:35
|
JasminVisitor.printEndMethod is throwing a NullPointerException when I run
the following code:
try {
File testFile = new File("BCEL/ProxyCreator.class");
JavaClass java_class = new
de.fub.bytecode.classfile.ClassParser(testFile.getAbsolutePath()).parse();
new JasminVisitor( java_class, System.out ).disassemble();
System.exit(1);
} catch( IOException e ) {
}
This is the call stack:
java.lang.NullPointerException
at JasminVisitor.printEndMethod(JasminVisitor.java:75)
at JasminVisitor.visitSynthetic(JasminVisitor.java:82)
at de.fub.bytecode.classfile.Synthetic.accept(Synthetic.java:67)
at
de.fub.bytecode.classfile.DescendingVisitor.visitSynthetic(DescendingVisitor
.java:288)
at de.fub.bytecode.classfile.Synthetic.accept(Synthetic.java:67)
at
de.fub.bytecode.classfile.DescendingVisitor.visitField(DescendingVisitor.jav
a:83)
at de.fub.bytecode.classfile.Field.accept(Field.java:52)
at
de.fub.bytecode.classfile.DescendingVisitor.visitJavaClass(DescendingVisitor
.java:63)
at de.fub.bytecode.classfile.JavaClass.accept(JavaClass.java:171)
at
de.fub.bytecode.classfile.DescendingVisitor.visit(DescendingVisitor.java:55)
at JasminVisitor.disassemble(JasminVisitor.java:33)
at TestBCEL.main(TestBCEL.java:394)
Am I doing something wrong? The weird thing is that I have been using BCEL
for several weeks and this bug just appeared.
Alan Oursland
|