fix minor bug with null project templates
This commit is contained in:
parent
f070e77f35
commit
dc78a506eb
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user