stixFiles[0] = stixFile;
} else {
stixFiles = stixFile.listFiles();
}
progressPanel.setMaximumProgress(stixFiles.length * 2 + 1);
<BUG>for (File file : stixFiles) {
try {</BUG>
processFile(file.getAbsolutePath(), progressPanel);
} catch (TskCoreException ex) {
logger.log(Level.SEVERE, String.format("Unable to process STIX file %s", file), ex); //NON-NLS

stixFiles[0] = stixFile;
} else {
stixFiles = stixFile.listFiles();
}
progressPanel.setMaximumProgress(stixFiles.length * 2 + 1);
for (File file : stixFiles) {
if (progressPanel.getStatus() == ReportStatus.CANCELED) {
return;
}
try {
processFile(file.getAbsolutePath(), progressPanel);
} catch (TskCoreException ex) {
logger.log(Level.SEVERE, String.format("Unable to process STIX file %s", file), ex); //NON-NLS
