fix minor bug with null project templates

This commit is contained in:
Michael Becker 2022-02-07 13:12:18 -05:00
parent f070e77f35
commit dc78a506eb
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C

View File

@ -607,7 +607,16 @@ namespace UniversalEditor.UserInterface
solution.Title = dlg.SolutionTitle;
}
ProjectObjectModel project = pjt.Create();
ProjectObjectModel project = null;
if (pjt == null)
{
project = new ProjectObjectModel();
Console.Error.WriteLine("NULL project templates should be deprecated; replace with actual Empty Project template");
}
else
{
project = pjt.Create();
}
project.ID = Guid.NewGuid();
project.Title = dlg.ProjectTitle;