am e8bb54b5: Merge change 23595 into eclair

Merge commit 'e8bb54b5b79816b43d9d1652d3dac9dc7b3d7e2d' into eclair-plus-aosp

* commit 'e8bb54b5b79816b43d9d1652d3dac9dc7b3d7e2d':
  fixing NPE that i see on my Mac when running idegen.sh
This commit is contained in:
Debajit Ghosh
2009-09-09 15:51:41 -07:00
committed by Android Git Automerger

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