Fixed a minor case which resulted in a core dump.
This commit is contained in:
parent
68ba6e635b
commit
092ee39483
1 changed files with 4 additions and 2 deletions
|
|
@ -535,9 +535,11 @@ namespace Cantera {
|
|||
|
||||
XML_Node& root = phase.root();
|
||||
XML_Node* local_db = 0;
|
||||
if (root.child("ctml").hasChild("elementData")) {
|
||||
if (root.hasChild("ctml")) {
|
||||
if (root.child("ctml").hasChild("elementData")) {
|
||||
local_db = &root.child("ctml/elementData");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int nel = static_cast<int>(enames.size());
|
||||
int i;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue