this fires when we switch away from an Editor, so don't crash

This commit is contained in:
Michael Becker 2021-02-27 08:35:50 -05:00
parent 497b56ec93
commit c3fc908a68
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C

View File

@ -46,6 +46,9 @@ namespace UniversalEditor.UserInterface.Panels
if (lv.SelectedRows.Count == 0)
return;
if (CurrentEditor == null)
return;
EditorDocumentExplorerNode node = lv.SelectedRows[0].GetExtraData<EditorDocumentExplorerNode>("node");
CurrentEditor.OnDocumentExplorerSelectionChanged(new EditorDocumentExplorerSelectionChangedEventArgs(node));
}