Auf Thema antworten

Nein, du kannst bei diesen gets auch überall nur einen String angeben. Die exakte Beschreibung dazu lautet:


public static Path get(String first, String... more)


Converts a path string, or a sequence of strings that when joined form a path string, to a Path. If more does not specify any elements then the value of the first parameter is the path string to convert. If more specifies one or more elements then each non-empty string, including first, is considered to be a sequence of name elements (see Path) and is joined to form a path string. The details as to how the Strings are joined is provider specific but typically they will be joined............


Und so wie ich das sehe darfst du eben nicht null als weiteren Parameter angeben. Das führt wahrscheinlich genau zu deiner NullPointerException. Also einfach überall die zusätzlichen null-Parameter weglassen.


Edit: Uuups, zu langsam :):)



Oben