src/share/tools/ProjectCreator/DirectoryTree.java

Print this page
rev 2073 : imported patch vcproj-64

*** 53,62 **** --- 53,65 ---- private class FileIterator implements Iterator { private Vector nodes = new Vector(); public FileIterator(Node rootNode) { + if(rootNode == null) { + return; + } nodes.add(rootNode); prune(); } public boolean hasNext() { return nodes.size() > 0;
*** 110,123 **** public void readDirectory(String baseDirectory) 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"); } try { root = root.getCanonicalFile(); } catch (IOException e) { --- 113,123 ---- public void readDirectory(String baseDirectory) throws IllegalArgumentException { File root = new File(Util.normalize(baseDirectory)); if (!root.isDirectory()) { ! return; } try { root = root.getCanonicalFile(); } catch (IOException e) {