don't crash if Title attribute is not specified on ProjectTask

This commit is contained in:
Michael Becker 2019-11-12 19:20:41 -05:00
parent dbe3d98c4e
commit f7fdb51610
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12

View File

@ -302,7 +302,7 @@ namespace UniversalEditor.DataFormats.UEPackage
if (tag.FullName != "Task") continue;
ProjectTask task = new ProjectTask();
task.Title = tag.Attributes["Title"].Value;
task.Title = tag.Attributes["Title"]?.Value;
MarkupTagElement tagActions = (tag.Elements["Actions"] as MarkupTagElement);
if (tagActions != null)