Skip to content

Commit 6c0c492

Browse files
authored
document bug re storing null and defaultValue properties (#409)
not differentiating `null` and `default value` is a bug - we won't fix it for now, but want to state that as a fact here
1 parent 64e897a commit 6c0c492

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/java/overflowdb/NodeDb.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public Map<String, Object> propertiesMapForStorage() {
118118

119119
for (String propertyKey : propertyKeys()) {
120120
final Object value = property(propertyKey);
121+
/** note: not differentiating `null` and `default value` is a bug - we won't fix it for now, but want to state that as a fact here... */
121122
if (value != null && !value.equals(propertyDefaultValue(propertyKey))) results.put(propertyKey, value);
122123
}
123124

0 commit comments

Comments
 (0)