PushJson/PopJson did not work correctly, if null beans were involved

This commit is contained in:
Roland Praml
2021-08-10 13:24:13 +02:00
parent 7091e972fc
commit 75fa7cb7fd
3 changed files with 99 additions and 2 deletions
@@ -80,11 +80,11 @@ class ScalarTypeJsonObjectMapper {
@Override
public Object read(DataReader reader) throws SQLException {
String json = reader.getString();
// pushJson such that we MD5 and store on EntityBeanIntercept later
reader.pushJson(json);
if (json == null || json.isEmpty()) {
return null;
}
// pushJson such that we MD5 and store on EntityBeanIntercept later
reader.pushJson(json);
try {
return objectReader.readValue(json, deserType);
} catch (IOException e) {