Fix NPE in layoutopt when trying to open non-XML files.

Change-Id: I59900c35996ce4465e2ecfd2eb26a19e3fa66403
This commit is contained in:
Romain Guy
2009-10-06 10:51:05 -07:00
parent d9050e6102
commit 16a56b8ccd

View File

@@ -51,7 +51,7 @@ public class Main {
for (File file : files) {
if (file.isFile() && file.getName().endsWith(".xml")) {
analyze(analyzer, file);
} else {
} else if (file.isDirectory()) {
analyzeFiles(file.listFiles());
}
}