summaryrefslogtreecommitdiff
path: root/src/utils/xml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/xml.cpp')
-rw-r--r--src/utils/xml.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp
index f2cbdb384..cb0cc56b8 100644
--- a/src/utils/xml.cpp
+++ b/src/utils/xml.cpp
@@ -245,6 +245,8 @@ namespace XML
XmlNodePtr findFirstChildByName(const XmlNodePtrConst parent,
const char *const name)
{
+ if (!parent)
+ return nullptr;
for_each_xml_child_node(child, parent)
{
if (xmlNameEqual(child, name))