diff --git a/Kitodo/src/main/java/org/kitodo/production/services/dataeditor/DataEditorService.java b/Kitodo/src/main/java/org/kitodo/production/services/dataeditor/DataEditorService.java index 3824f994d07..a8fb3d9ba73 100644 --- a/Kitodo/src/main/java/org/kitodo/production/services/dataeditor/DataEditorService.java +++ b/Kitodo/src/main/java/org/kitodo/production/services/dataeditor/DataEditorService.java @@ -255,7 +255,7 @@ public static StructuralElementViewInterface getStructuralElementView(DataEditor TreeNode selectedLogicalNode = dataEditor.getStructurePanel().getSelectedLogicalNode(); if (Objects.isNull(selectedLogicalNode)) { - throw new IllegalStateException("No logical node selected!"); + return null; } if (!(selectedLogicalNode.getData() instanceof StructureTreeNode)) {