diff --git a/Kitodo/src/main/java/org/kitodo/production/forms/createprocess/AddMetadataDialog.java b/Kitodo/src/main/java/org/kitodo/production/forms/createprocess/AddMetadataDialog.java index ce1f46343bc..be98b0c9c38 100644 --- a/Kitodo/src/main/java/org/kitodo/production/forms/createprocess/AddMetadataDialog.java +++ b/Kitodo/src/main/java/org/kitodo/production/forms/createprocess/AddMetadataDialog.java @@ -12,6 +12,7 @@ package org.kitodo.production.forms.createprocess; import java.util.List; +import java.util.Objects; import javax.faces.model.SelectItem; @@ -64,6 +65,9 @@ public List getAddableMetadata() { * @return whether any further metadata can be added to currently selected structure element. */ public boolean metadataAddableToStructureElement() throws InvalidMetadataValueException { + if (Objects.isNull(createProcessForm.getRulesetManagement())) { + return false; + } prepareAddableMetadataForStructure(); return !getAddableMetadata().isEmpty(); }