Skip to content

Commit

Permalink
Add defensive code for SDF parsing
Browse files Browse the repository at this point in the history
- Root
  • Loading branch information
hyunseok-yang committed Jul 24, 2020
1 parent 77c884a commit dd2614c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Assets/Scripts/Tools/SDF/Root.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,13 @@ private XmlNode GetIncludedModel(XmlNode _node)
{
uri = value.Item1 + "/" + value.Item2;
}
else
{
Console.WriteLine("Not exists in database: " + uri);
return null;
}

var modelSdfDoc = new XmlDocument();

try
{
modelSdfDoc.Load(uri);
Expand Down

0 comments on commit dd2614c

Please sign in to comment.