Merge pull request #2299 from FOCONIS/push-pops-in-wrong-order

PushJson/PopJson did not work correctly, if null beans were involved
This commit is contained in:
Rob Bygrave authored and GitHub committed 2021-08-11 13:48:00 +12:00
commit 1ce4b1a994
3 files changed
+99 -2

No files matched your search

@@ -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) {