Skip to content

Commit

Permalink
Fixed initialized genconf option reinitialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylussaud committed Sep 15, 2023
1 parent f8ee96c commit 350543b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ public static void initializeOptions(Generation generation) {
final Map<String, String> 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<String, String> entry : initializedOptions.entrySet()) {
Expand Down

0 comments on commit 350543b

Please sign in to comment.