MNT-23927 Handle JsonMappingException and JsonGenerationException (#2289)

* Throw JSON exceptions as IO exceptions to be properly handled
* Log null prop keys
* Fix test to have the mocked response different than null
This commit is contained in:
Eva Vasques
2023-11-08 14:58:08 +00:00
committed by GitHub
parent 6065c6feec
commit a3ccafb035
3 changed files with 10 additions and 8 deletions

View File

@@ -1614,6 +1614,10 @@ public abstract class AbstractPropertyValueDAOImpl implements PropertyValueDAO
{
Map<Serializable, Serializable> map = (Map<Serializable, Serializable>) container;
Serializable mapKey = getPropertyValueById(keyPropId).getSecond();
if(mapKey == null)
{
logger.error("Found null key for id " + keyPropId + " with value " + value);
}
map.put(mapKey, value);
}
else if (container instanceof Collection<?>)