Add dedicated method for api count in baseApiActionUtil; improve null handling in json to record

This commit is contained in:
2022-10-24 15:34:37 -05:00
parent 22b2e01cca
commit 44537e182d
4 changed files with 22 additions and 6 deletions

View File

@ -266,6 +266,12 @@ public class JsonUtils
}
}
if(jsonObjectToUse.isNull(backendName))
{
record.setValue(fieldName, null);
continue;
}
switch(metaData.getType())
{
case INTEGER -> record.setValue(fieldName, jsonObjectToUse.optInt(backendName));