- for (File f: file.listFiles()) {
- // System.err.printf(" -> file %s %s\n", file, file.getName());
+ File [] listFiles = file.listFiles();
+ if (listFiles != null) {
+ for (File f: listFiles) {
+ // System.err.printf(" -> file %s %s\n", file, file.getName());