From 350543b7adf7223d371c6e26e67f1f930f522cbc Mon Sep 17 00:00:00 2001 From: Yvan Lussaud Date: Fri, 15 Sep 2023 10:18:46 +0200 Subject: [PATCH] Fixed initialized genconf option reinitialization. --- .../src/org/obeonetwork/m2doc/genconf/GenconfUtils.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/org.obeonetwork.m2doc.genconf/src/org/obeonetwork/m2doc/genconf/GenconfUtils.java b/plugins/org.obeonetwork.m2doc.genconf/src/org/obeonetwork/m2doc/genconf/GenconfUtils.java index 153d44064..a8b8301d1 100644 --- a/plugins/org.obeonetwork.m2doc.genconf/src/org/obeonetwork/m2doc/genconf/GenconfUtils.java +++ b/plugins/org.obeonetwork.m2doc.genconf/src/org/obeonetwork/m2doc/genconf/GenconfUtils.java @@ -135,7 +135,10 @@ public static void initializeOptions(Generation generation) { final Map initializedOptions = M2DocUtils.getInitializedOptions(options); for (Option option : generation.getOptions()) { if (initializedOptions.containsKey(option.getName())) { - option.setValue(initializedOptions.remove(option.getName())); + final String initialValue = initializedOptions.remove(option.getName()); + if (option.getValue() == null) { + option.setValue(initialValue); + } } } for (Entry entry : initializedOptions.entrySet()) {