Merge pull request #2316 from FOCONIS/pr/bugfix/json-null-formatValue

Fix: setting json values to null was throwing a NPE when persisting
This commit is contained in:
Rob Bygrave authored and GitHub committed 2021-08-16 22:31:47 +12:00
commit a2b19d46e1
3 files changed
+42 -6

No files matched your search

@@ -122,9 +122,6 @@ class ScalarTypeJsonList {
@Override
public final String formatValue(List value) {
if (value.isEmpty()) {
return "[]";
}
try {
return EJson.write(value);
} catch (IOException e) {
@@ -122,9 +122,6 @@ final class ScalarTypeJsonSet {
@Override
public final String formatValue(Set value) {
if (value.isEmpty()) {
return "[]";
}
try {
return EJson.write(value);
} catch (IOException e) {