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