Merge change 23595 into eclair

* changes:
  fixing NPE that i see on my Mac when running idegen.sh
This commit is contained in:
Android (Google) Code Review
2009-09-09 18:42:18 -04:00

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);