Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 215febf

Browse files
authored
Merge pull request #33 from Natanel-Shitrit/master
Fix crash when trying to close a window when editor is empty.
2 parents 172b7cb + b7cfb89 commit 215febf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

UI/MainWindowCommands.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ private void Command_SaveAll()
114114
private void Command_Close()
115115
{
116116
var ee = GetCurrentEditorElement();
117+
if (ee == null) return;
117118
DockingPane.RemoveChild(ee.Parent);
118119
ee.Close();
119120
}

0 commit comments

Comments
 (0)