Fixed null pointer exception
This commit is contained in:
parent
391ecce152
commit
0760bd29d6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue