Commit 486a7eb9 authored by Thomas Huster's avatar Thomas Huster
Browse files

[17382] fixed deselection of block if selection is null

parent 384e960c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -101,7 +101,11 @@ public class BlockSelector extends CodeSelectorFactory {
				selected = ((BlockTreeViewerItem) firstElement).getBlock();
			}
			tvfa.updateSelection((Identifiable) selected);
			if (selected != null) {
				ContextServiceHolder.get().getRootContext().setTyped(selected);
			} else {
				ContextServiceHolder.get().getRootContext().removeTyped(ICodeElementBlock.class);
			}
		}
	};