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-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorOutputWriter.java

    r2232 r2233  
    537537        if (oldLogDir.exists() && oldLogDir.isDirectory() && (oldLogDir.listFiles() != null)) { 
    538538            boolean allFilesRenamed = true; 
    539             for (File oldLogFile : oldLogDir.listFiles()) { 
    540                 allFilesRenamed &= oldLogFile.renameTo(new File(newLogDir, oldLogFile.getName())); 
     539            File[] children = oldLogDir.listFiles(); 
     540             
     541            if (children != null) { 
     542                for (File oldLogFile : children) { 
     543                        allFilesRenamed &= oldLogFile.renameTo(new File(newLogDir, oldLogFile.getName())); 
     544                } 
    541545            } 
    542546             
Note: See TracChangeset for help on using the changeset viewer.