From dd2614c7e9d891d72f6166891118d76eebd1aeca Mon Sep 17 00:00:00 2001 From: Hyunseok Yang Date: Fri, 24 Jul 2020 21:50:27 +0900 Subject: [PATCH] Add defensive code for SDF parsing - Root --- Assets/Scripts/Tools/SDF/Root.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Tools/SDF/Root.cs b/Assets/Scripts/Tools/SDF/Root.cs index 85353f85..7b07df6c 100644 --- a/Assets/Scripts/Tools/SDF/Root.cs +++ b/Assets/Scripts/Tools/SDF/Root.cs @@ -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);