Fix crash in NodeUtility::CollectNodes

fixes #12741
This commit is contained in:
Gunnar Beutner 2016-09-19 06:34:37 +02:00
parent 8fd454fbb1
commit fa1fa23c55
1 changed files with 7 additions and 1 deletions

View File

@ -242,7 +242,13 @@ Dictionary::Ptr NodeUtility::LoadNodeFile(const String& node_file)
void NodeUtility::CollectNodes(const String& node_file, std::vector<Dictionary::Ptr>& nodes)
{
Dictionary::Ptr node = LoadNodeFile(node_file);
Dictionary::Ptr node;
try {
node = LoadNodeFile(node_file);
} catch (const std::exception&) {
return;
}
if (!node)
return;