diff --git a/Core/src/org/sleuthkit/autopsy/report/ReportWizardFileOptionsPanel.java b/Core/src/org/sleuthkit/autopsy/report/ReportWizardFileOptionsPanel.java index 83ba068fc4..fa9ac57efe 100644 --- a/Core/src/org/sleuthkit/autopsy/report/ReportWizardFileOptionsPanel.java +++ b/Core/src/org/sleuthkit/autopsy/report/ReportWizardFileOptionsPanel.java @@ -38,7 +38,6 @@ class ReportWizardFileOptionsPanel implements WizardDescriptor.FinishablePanel { private WizardDescriptor wiz; private final boolean useCaseSpecificData; - ReportWizardPanel2(boolean useCaseSpecificData, TableReportSettings tableResportSettings) { + ReportWizardPanel2(boolean useCaseSpecificData, TableReportSettings tableReportSettings) { this.useCaseSpecificData = useCaseSpecificData; - wiz.putProperty("tableReportSettings", tableResportSettings); finishButton = new JButton(NbBundle.getMessage(this.getClass(), "ReportWizardPanel2.finishButton.text")); nextButton = new JButton(NbBundle.getMessage(this.getClass(), "ReportWizardPanel2.nextButton.text")); nextButton.setEnabled(true); diff --git a/Core/src/org/sleuthkit/autopsy/report/ReportingConfigLoader.java b/Core/src/org/sleuthkit/autopsy/report/ReportingConfigLoader.java index b7a27052f5..a17894dda8 100755 --- a/Core/src/org/sleuthkit/autopsy/report/ReportingConfigLoader.java +++ b/Core/src/org/sleuthkit/autopsy/report/ReportingConfigLoader.java @@ -104,8 +104,8 @@ final class ReportingConfigLoader { throw new ReportConfigException("Unable to read module configurations map " + filePath, ex); } - if (moduleConfigs == null) { - throw new ReportConfigException("Failed to read module configurations map " + filePath); + if (moduleConfigs == null || moduleConfigs.isEmpty()) { + return config; } // read each ReportModuleSettings object individually @@ -138,6 +138,10 @@ final class ReportingConfigLoader { */ static synchronized void saveConfig(ReportingConfig reportConfig) throws ReportConfigException { + if (reportConfig == null) { + throw new ReportConfigException("Reporting configuration is NULL"); + } + // construct the configuration directory path Path pathToConfigDir = Paths.get(ReportingConfigLoader.REPORT_CONFIG_FOLDER_PATH, reportConfig.getName()); @@ -177,6 +181,9 @@ final class ReportingConfigLoader { party report module settings. If we were to serialize the entire ReportingConfig object, then a single error while reading in a 3rd party report module would prevent us from reading the entire reporting configuration.*/ + if (reportConfig.getModuleConfigs() == null) { + return; + } for (ReportModuleConfig moduleConfig : reportConfig.getModuleConfigs().values()) { ReportModuleSettings settings = moduleConfig.getModuleSettings(); filePath = pathToConfigDir.toString() + File.separator + moduleConfig.getModuleClassName() + REPORT_SETTINGS_FILE_EXTENSION;