Skip to content

Commit

Permalink
Fix IllegalStateException: No logical node selected!
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-ronge authored Mar 6, 2024
1 parent 023d949 commit cc92f48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit cc92f48

Please sign in to comment.