Ignore:
Timestamp:
12/08/17 09:36:26 (7 years ago)
Author:
pharms
Message:
  • solved some findbugs issues
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/commands/CMDcorrectDirOldJFC.java

    r927 r2233  
    6969        String absolutPath = folder.getAbsolutePath(); 
    7070        String absolutDestPath = destfolder.getAbsolutePath(); 
    71         for (String filename : folder.list()) { 
    72             String source = absolutPath + "/" + filename; 
    73             String dest = absolutDestPath + "/" + filename; 
    74             Console.traceln(Level.INFO, "Processing file: " + source); 
     71        String[] children = folder.list(); 
     72         
     73        if (children != null) { 
     74            for (String filename : folder.list()) { 
     75                String source = absolutPath + "/" + filename; 
     76                String dest = absolutDestPath + "/" + filename; 
     77                Console.traceln(Level.INFO, "Processing file: " + source); 
    7578 
    76             corrector.correctFile(source, dest); 
     79                corrector.correctFile(source, dest); 
     80            } 
    7781        } 
    7882    } 
Note: See TracChangeset for help on using the changeset viewer.