Hi,
Now I started getting the following error
Exception in thread "main" java.lang.NullPointerException
at
org.openlaszlo.compiler.CompilationEnvironment.addLZOFile(CompilationEnvironment.java:308)
at
org.openlaszlo.compiler.DefaultFileResolver.resolveInternal(FileResolver.java:206)
at
org.openlaszlo.compiler.DefaultFileResolver.resolve(FileResolver.java:110)
at org.openlaszlo.compiler.Parser.expandIncludes(Parser.java:646)
at org.openlaszlo.compiler.Parser.readExpanded(Parser.java:418)
at org.openlaszlo.compiler.Parser.parse(Parser.java:707)
at org.openlaszlo.compiler.Compiler.compile(Compiler.java:386)
at org.openlaszlo.compiler.Compiler.compile(Compiler.java:208)
at org.openlaszlo.compiler.Main.compile(Main.java:399)
at org.openlaszlo.compiler.Main.lzc(Main.java:339)
at org.openlaszlo.compiler.Main.main(Main.java:105)
This happens when linking against my own lzo library that is located at
lps/components
The method where the npe occurs looks like this
public void addLZOFile(File lzo) {
getGenerator().addLZOFile(lzo);
}
So it must be the getGenerator that returns null.
SWF writer that compilation within this
* environment writes to.
* @return the object writer
*/
ObjectWriter getGenerator() {
return mObjectWriter;
}
so mObjectWriter is somehow null.
This problem does not arise when compiling the library.
Was this caused by some recent change or something?
- rami