Ignore:
Timestamp:
12/07/17 17:08:59 (7 years ago)
Author:
pharms
Message:
  • solved some findbugs issues
Location:
trunk/autoquest-plugin-genericevents/src/main/java/de/ugoe/cs/autoquest/plugin/genericevents/commands
Files:
2 edited

Legend:

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

    r2165 r2232  
    112112        if (file.isDirectory()) { 
    113113            String[] children = file.list(); 
    114             Arrays.sort(children); 
    115114             
    116             for (String child : children) { 
    117                 File childFile = new File(file, child); 
    118                 parseFile(childFile, parser); 
     115            if (children != null) { 
     116                Arrays.sort(children); 
     117 
     118                for (String child : children) { 
     119                        File childFile = new File(file, child); 
     120                        parseFile(childFile, parser); 
     121                } 
    119122            } 
    120123        } 
  • trunk/autoquest-plugin-genericevents/src/main/java/de/ugoe/cs/autoquest/plugin/genericevents/commands/CMDsplitDirGenericEvents.java

    r2165 r2232  
    9595        if (source.isDirectory()) { 
    9696            String[] children = source.list(); 
    97             Arrays.sort(children); 
    9897             
    99             for (String child : children) { 
    100                 File childFile = new File(source, child); 
    101                 File childDestination = new File(dest, child); 
    102                 splitFile(childFile, childDestination, timediff); 
     98            if (children != null) { 
     99                Arrays.sort(children); 
     100 
     101                for (String child : children) { 
     102                        File childFile = new File(source, child); 
     103                        File childDestination = new File(dest, child); 
     104                        splitFile(childFile, childDestination, timediff); 
     105                } 
    103106            } 
    104107        } 
Note: See TracChangeset for help on using the changeset viewer.