Sometimes ObjectModel is null, and that's OK

This commit is contained in:
Michael Becker 2019-09-14 22:48:51 -04:00
parent a86e9421ef
commit 168ea61082

View File

@ -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<DataFormatReference> dfrlist = new List<DataFormatReference>();
foreach (Association assoc in assocs)
{