sometimes Accessor is null, this is supposed to happen, but not sure why - think it has to do with the default editor

This commit is contained in:
Michael Becker 2020-04-03 00:00:15 -04:00
parent 2adf0fca78
commit 5506b0c81b
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12

View File

@ -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();