diff --git a/OpenRobertaRobot/src/main/java/de/fhg/iais/roberta/worker/RegenerateNepoWorker.java b/OpenRobertaRobot/src/main/java/de/fhg/iais/roberta/worker/RegenerateNepoWorker.java index e8f521650f..745736834e 100644 --- a/OpenRobertaRobot/src/main/java/de/fhg/iais/roberta/worker/RegenerateNepoWorker.java +++ b/OpenRobertaRobot/src/main/java/de/fhg/iais/roberta/worker/RegenerateNepoWorker.java @@ -47,7 +47,8 @@ public void execute(Project project) { String configurationXML = jaxbToXml(astToJaxb(configurationAst)); project.setConfigurationAsBlocklyXML(configurationXML); - project.setResult(Key.COMPILERWORKFLOW_SUCCESS); + // this worker executes independent of success or failure of preceding workers. + // thus, this worker should NEVER change the result. The result should stay as it is :-) } catch ( Throwable e ) { LOG.error("program & configuration ast -> blockly failed", e); project.setResult(Key.COMPILERWORKFLOW_ERROR_PROGRAM_GENERATION_FAILED);