Skip to content
Snippets Groups Projects
Commit 3dae7c9c authored by srosse's avatar srosse
Browse files

OO-3420: remove NULL value from the persisted properties

parent cc471631
No related branches found
No related tags found
No related merge requests found
......@@ -366,7 +366,11 @@ public class PersistedProperties extends LogDelegator implements Initializable,
synchronized (configuredProperties) { // make read/write save in VM
String oldValue = configuredProperties.getProperty(propertyName);
if (oldValue == null || !oldValue.equals(value)) {
configuredProperties.setProperty(propertyName, value);
if(value == null) {
configuredProperties.remove(propertyName);
} else {
configuredProperties.setProperty(propertyName, value);
}
propertiesDirty = true;
if (saveConfiguration) savePropertiesAndFireChangedEvent();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment