From 0d993a9f483f77fd2c7af2bb54abe4f7a7de3e5d Mon Sep 17 00:00:00 2001 From: Yvan Lussaud Date: Fri, 15 Sep 2023 10:38:27 +0200 Subject: [PATCH] Fixed initialized genconf option reinitialization. --- .../src/org/obeonetwork/m2doc/genconf/GenconfUtils.java | 2 +- 1 file changed, 1 insertion(+), 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 a8b8301d1..2c0064616 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 @@ -136,7 +136,7 @@ public static void initializeOptions(Generation generation) { for (Option option : generation.getOptions()) { if (initializedOptions.containsKey(option.getName())) { final String initialValue = initializedOptions.remove(option.getName()); - if (option.getValue() == null) { + if (option.getValue() == null || option.getValue().trim().isEmpty()) { option.setValue(initialValue); } }