From 6de9efa9e91759c155ae9b7814fcd4b963537f5a Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Tue, 11 May 2021 23:56:24 -0400 Subject: [PATCH] fix crash if OpenFile(string) is called and file is not found - e.g. from Bookmarks menu --- Libraries/UniversalEditor.UserInterface/MainWindow.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/UniversalEditor.UserInterface/MainWindow.cs b/Libraries/UniversalEditor.UserInterface/MainWindow.cs index cc2cdcdc..487bb859 100644 --- a/Libraries/UniversalEditor.UserInterface/MainWindow.cs +++ b/Libraries/UniversalEditor.UserInterface/MainWindow.cs @@ -1049,6 +1049,9 @@ namespace UniversalEditor.UserInterface { InitEditorPage(doc); + if (doc == null) + continue; + if (doc.Accessor is FileAccessor) { // FIXME: support Accessors other than FileAccessor