From 168ea610825386ca0bbec4c6dedb2cb0de873e22 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Sat, 14 Sep 2019 22:48:51 -0400 Subject: [PATCH] Sometimes ObjectModel is null, and that's OK --- .../Dialogs/DocumentPropertiesDialog.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/DocumentPropertiesDialog.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/DocumentPropertiesDialog.cs index 3bdb5d6e..2cc28e98 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/DocumentPropertiesDialog.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/DocumentPropertiesDialog.cs @@ -282,7 +282,7 @@ namespace UniversalEditor.UserInterface.Dialogs if (Mode == DocumentPropertiesDialogMode.Save) { // show all dataformats for the current object model - Association[] assocs = Association.FromCriteria(new AssociationCriteria() { ObjectModel = mvarObjectModel.MakeReference() }); + Association[] assocs = Association.FromCriteria(new AssociationCriteria() { ObjectModel = mvarObjectModel?.MakeReference() }); List dfrlist = new List(); foreach (Association assoc in assocs) {