diff --git a/Core/src/org/sleuthkit/autopsy/ingest/IngestJobSettings.java b/Core/src/org/sleuthkit/autopsy/ingest/IngestJobSettings.java index c3884b5930..b10bd48c2d 100644 --- a/Core/src/org/sleuthkit/autopsy/ingest/IngestJobSettings.java +++ b/Core/src/org/sleuthkit/autopsy/ingest/IngestJobSettings.java @@ -379,7 +379,7 @@ public class IngestJobSettings { // This block of code gets rid of that variable instance number and helps maitains constant module name over multiple runs. moduleSettingsFilePath.replaceAll("[$][\\d]+.settings$", "\\$.settings"); } - try (NbObjectOutputStream out = new NbObjectOutputStream(new FileOutputStream(getModuleSettingsFilePath(factory)))) { + try (NbObjectOutputStream out = new NbObjectOutputStream(new FileOutputStream(moduleSettingsFilePath))) { out.writeObject(settings); } } catch (IOException ex) {