From 5506b0c81b22be71f82970eaea2ae5c1b0da923b Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Fri, 3 Apr 2020 00:00:15 -0400 Subject: [PATCH] sometimes Accessor is null, this is supposed to happen, but not sure why - think it has to do with the default editor --- Libraries/UniversalEditor.UserInterface/Pages/EditorPage.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/UniversalEditor.UserInterface/Pages/EditorPage.cs b/Libraries/UniversalEditor.UserInterface/Pages/EditorPage.cs index 45dc62da..9977a0f0 100644 --- a/Libraries/UniversalEditor.UserInterface/Pages/EditorPage.cs +++ b/Libraries/UniversalEditor.UserInterface/Pages/EditorPage.cs @@ -140,6 +140,9 @@ namespace UniversalEditor.UserInterface.Pages // errorMessage1.Details = "Detected object model: " + om.GetType().FullName; bool requiresOpen = false; + if (mvarDocument.Accessor == null) + return; + if (!mvarDocument.Accessor.IsOpen) { mvarDocument.Accessor.Open();