Toml null handling

This commit is contained in:
Jindra Petřík
2025-05-19 00:34:37 +02:00
parent e3cbe52243
commit d163961cab

View File

@@ -545,7 +545,7 @@ public class TomlConfigurationStorage implements ConfigurationStorage {
if (showComments) {
pw.println();
}
if (!item.hasValue || savedValue.isEmpty()) {
if (!item.hasValue || savedValue == null || savedValue.isEmpty()) {
pw.print("# ");
}
pw.print(key + " = ");