mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix case of empty mappings
This commit is contained in:
@@ -72,6 +72,12 @@ namespace SabreTools.Helper
|
||||
node = node.NextSibling;
|
||||
}
|
||||
|
||||
// If the node is empty, just return so it doesn't crash
|
||||
if (!node.HasChildNodes)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Get the first mapping node
|
||||
node = node.FirstChild;
|
||||
while (node.NodeType != XmlNodeType.Element && node.Name != "mapping")
|
||||
|
||||
Reference in New Issue
Block a user