diff --git a/Libraries/UniversalEditor.UserInterface/Panels/DocumentExplorerPanel.cs b/Libraries/UniversalEditor.UserInterface/Panels/DocumentExplorerPanel.cs index f1e05f45..54b198fe 100644 --- a/Libraries/UniversalEditor.UserInterface/Panels/DocumentExplorerPanel.cs +++ b/Libraries/UniversalEditor.UserInterface/Panels/DocumentExplorerPanel.cs @@ -46,6 +46,9 @@ namespace UniversalEditor.UserInterface.Panels if (lv.SelectedRows.Count == 0) return; + if (CurrentEditor == null) + return; + EditorDocumentExplorerNode node = lv.SelectedRows[0].GetExtraData("node"); CurrentEditor.OnDocumentExplorerSelectionChanged(new EditorDocumentExplorerSelectionChangedEventArgs(node)); }