Fix NPE in layoutopt when trying to open non-XML files.
Change-Id: I59900c35996ce4465e2ecfd2eb26a19e3fa66403
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user