fixing NPE that i see on my Mac when running idegen.sh

This commit is contained in:
Debajit Ghosh
2009-09-01 22:20:31 -07:00
parent 0c12e21a31
commit 5f2ff00773

View File

@@ -123,7 +123,11 @@ public class Configuration {
*/
boolean firstJavaFile = true;
for (File file : directory.listFiles()) {
File[] files = directory.listFiles();
if (files == null) {
return;
}
for (File file : files) {
// Trim preceding "./" from path.
String path = file.getPath().substring(2);