diff options
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index d5af8c79f..b43dd88cf 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -673,11 +673,14 @@ bool Configuration::resetBoolValue(const std::string &key) } -void ConfigurationObject::initFromXML(const XmlNodePtrConst parent_node) +void ConfigurationObject::initFromXML(const XmlNodePtrConst parentNode) { clear(); - for_each_xml_child_node(node, parent_node) + if (!parentNode) + return; + + for_each_xml_child_node(node, parentNode) { if (xmlNameEqual(node, "list")) { |