don't assume GetCurrentEditor() returns something
This commit is contained in:
parent
1b28f8603d
commit
c4728b6566
@ -1285,8 +1285,12 @@ namespace UniversalEditor.UserInterface
|
||||
Pages.EditorPage currentEditorPage = GetCurrentEditorPage();
|
||||
if (currentEditorPage != null)
|
||||
{
|
||||
if (!GetCurrentEditor().NotifySaving())
|
||||
return false;
|
||||
Editor editor = GetCurrentEditor();
|
||||
if (editor != null)
|
||||
{
|
||||
if (!GetCurrentEditor().NotifySaving())
|
||||
return false;
|
||||
}
|
||||
|
||||
return SaveFile(currentEditorPage.Document);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user