I'm actually trying to create a file with a specific file name. The problem is, that the filename contains german umlauts, so I will always get a NullPointerException
.
The code looks like this:
File f = new File("/Volume/dir1/dir2/dirWithUmlauts");
File[] files = f.listFiles(); // NullPointerException
I tested the same on Windows and it works. I have no idea why it does not work on Mac.