Fixed null pointer exception

This commit is contained in:
Luca Frosini 2021-08-05 16:41:29 +02:00
parent 391ecce152
commit 0760bd29d6
1 changed files with 4 additions and 0 deletions

View File

@ -1054,6 +1054,10 @@ public abstract class ElementManagement<El extends OElement, T extends Type> {
protected JsonNode getPropertyForJson(String key, Object object) throws ResourceRegistryException {
try {
if(object == null) {
return null;
}
if(object instanceof JsonNode) {
return (JsonNode) object;
}