import java.nio.file.Paths; public class PathBug { public static void main(String[] args) { try { Paths.get(null); } catch (Exception e) { System.out.println("Path.get(URI) with null arg error"); e.printStackTrace(); } try { Paths.get((String) null); } catch (Exception e) { System.out.println("Path.get(String...varargs) with null arg error"); e.printStackTrace(); } } }