am 16a56b8c: Fix NPE in layoutopt when trying to open non-XML files.

Merge commit '16a56b8ccd39c812c8c7b86bd83ec9c492d19de9' into eclair-mr2

* commit '16a56b8ccd39c812c8c7b86bd83ec9c492d19de9':
  Fix NPE in layoutopt when trying to open non-XML files.
This commit is contained in:
Romain Guy
2009-10-06 11:11:42 -07:00
committed by Android Git Automerger

View File

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