--- old/src/share/tools/ProjectCreator/DirectoryTree.java 2011-02-10 13:17:18.444566000 +0100 +++ new/src/share/tools/ProjectCreator/DirectoryTree.java 2011-02-10 13:17:18.110546900 +0100 @@ -55,6 +55,9 @@ private Vector nodes = new Vector(); public FileIterator(Node rootNode) { + if(rootNode == null) { + return; + } nodes.add(rootNode); prune(); } @@ -112,10 +115,7 @@ throws IllegalArgumentException { File root = new File(Util.normalize(baseDirectory)); if (!root.isDirectory()) { - throw new IllegalArgumentException("baseDirectory \"" + - baseDirectory + - "\" does not exist or " + - "is not a directory"); + return; } try { root = root.getCanonicalFile();