Problem seemed to be something fishy with the getParentFile which returned null for some reason (even if there was a parent file)
The getAbsoluteFile solved the problem.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
http://adempiere.svn.sourceforge.net/adempiere/?rev=13721&view=rev
Problem seemed to be something fishy with the getParentFile which returned null for some reason (even if there was a parent file)
The getAbsoluteFile solved the problem.