mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
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:
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) {
|
||||
|
||||
Reference in new issue
Block a user