summaryrefslogtreecommitdiffstats
path: root/src/qdoc/qdocindexfiles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/qdocindexfiles.cpp')
-rw-r--r--src/qdoc/qdocindexfiles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/qdocindexfiles.cpp b/src/qdoc/qdocindexfiles.cpp
index b37323885..3ff4ecb8c 100644
--- a/src/qdoc/qdocindexfiles.cpp
+++ b/src/qdoc/qdocindexfiles.cpp
@@ -216,7 +216,7 @@ void QDocIndexFiles::readIndexSection(QXmlStreamReader &reader, Node *current,
return (name == relatedNode->name() && href == relatedNode->url().section(QLatin1Char('/'), -1));
});
- if (nodeIterator != m_relatedNodes.end()) {
+ if (nodeIterator != m_relatedNodes.end() && parent) {
parent->adoptChild(*nodeIterator);
reader.skipCurrentElement();
return;