| JavaIoFileSystemAccess - null pointer [message #1014000] |
Sun, 24 February 2013 18:53  |
Bruce L. Messages: 49 Registered: June 2011 |
Member |
|
|
Hi,
the following
public static void main(String[] args) {
JavaIoFileSystemAccess fileWriter = new JavaIoFileSystemAccess();
fileWriter.setOutputPath("out");
fileWriter.generateFile("bla", "content");
return;
}
raises a NullPointerException.
After looking into the code, I see the problem is that two members of the class JavaIoFileSystemAccess are never initialized. The constructor with no args does nothing. There are no setters.
My project depends on the jar org.eclipse.xtext_2.2.1... .jar , which is stored on my filesystem.
However my Eclipse (Juno) has version 2.3.1 of xtext
When I ctrl+click on JavaIoFileSystemAccess in my code it opens the class file, saying that there is no source attached. But when I click in the console on the error message of the exception, it magically opens a source file, which I think is the one installed in eclipse.
How am I supposed to use JavaIoFileSystemAccess?
Do you think I am having a version conflict problem?
Thanks in advance
B.
|
|
|