From 9051b1ab8d4be69bf3200696f16cb1c50b9925e2 Mon Sep 17 00:00:00 2001 From: Florentine Rosiere Date: Thu, 7 Nov 2024 16:52:59 +0100 Subject: [PATCH] #327 avoid crash when the init step is failing closes #327 Signed-off-by: Florentine Rosiere --- sources/Launcher/DYNSystematicAnalysisLauncher.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/Launcher/DYNSystematicAnalysisLauncher.cpp b/sources/Launcher/DYNSystematicAnalysisLauncher.cpp index 101b962b..3e6c3de1 100644 --- a/sources/Launcher/DYNSystematicAnalysisLauncher.cpp +++ b/sources/Launcher/DYNSystematicAnalysisLauncher.cpp @@ -127,11 +127,11 @@ SystematicAnalysisLauncher::launchScenario(const boost::shared_ptr& sc SimulationResult result; result.setScenarioId(scenario->getId()); boost::shared_ptr simulation = createAndInitSimulation(workingDir, job, params, result, inputs_); - simulation->setTimelineOutputFile(""); - simulation->setConstraintsOutputFile(""); - simulation->setLostEquipmentsOutputFile(""); if (simulation) { + simulation->setTimelineOutputFile(""); + simulation->setConstraintsOutputFile(""); + simulation->setLostEquipmentsOutputFile(""); simulate(simulation, result); }