mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -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<?>)
|
||||
|
Reference in New Issue
Block a user