From 25f2850114fcb27810c67ac956e2b6eaf15df72d Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Tue, 2 Mar 2021 16:39:30 +0100 Subject: [PATCH] Fixed bug --- .../resourceregistry/instances/base/ElementManagement.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/instances/base/ElementManagement.java b/src/main/java/org/gcube/informationsystem/resourceregistry/instances/base/ElementManagement.java index 94881bc..41df377 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/instances/base/ElementManagement.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/instances/base/ElementManagement.java @@ -1165,6 +1165,10 @@ public abstract class ElementManagement { Set definedProperties = getAllProperties(); + if(definedProperties==null) { + // The type could define no property + return; + } for(PropertyDefinition propertyDefinition : definedProperties) {