Hi all,
in the output table of my List Files node I get a column named Location containing the absolute path of the read files (e.g. “C:\folder\image.jpg”).
My next node is a Java Snippet. Here I would like to create a File object (java.io.File) based on column Location from the previous node (= c_Location):
File file = new File(c_Location);
Unfortunatly this results in an error message, when I run the Java Snippet:
ERROR Java Snippet 0:3 Execute failed: java.lang.NullPointerException
Now I tried to write the file path directly in the Java Snippet, rather than injecting it from the input of the previous node:
File file = new File("C:\\folder\\image.jpg");
This works great. No NullPointerException.
But how can I realize the first approach using the input variable c_Location correctly?
Thanks for your help in advance.
Best regards
Dan