summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2011-08-03 11:21:07 (GMT)
committerMartin Smith <martin.smith@nokia.com>2011-08-03 11:23:16 (GMT)
commit99048b2664bd5271810ed7cae1dc0fd44a14fdac (patch)
treeeb44bba8207cdf869f2f610986656dca93fc4f68 /tools/qdoc3
parenteed8a63d17a7d324892f920b034db9e268f27685 (diff)
downloadQt-99048b2664bd5271810ed7cae1dc0fd44a14fdac.zip
Qt-99048b2664bd5271810ed7cae1dc0fd44a14fdac.tar.gz
Qt-99048b2664bd5271810ed7cae1dc0fd44a14fdac.tar.bz2
qdoc: Check pointer for null before dereferencing.
Task-number: QTBUG-20725
Diffstat (limited to 'tools/qdoc3')
-rw-r--r--tools/qdoc3/ditaxmlgenerator.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/qdoc3/ditaxmlgenerator.cpp b/tools/qdoc3/ditaxmlgenerator.cpp
index c05880f..43d92df 100644
--- a/tools/qdoc3/ditaxmlgenerator.cpp
+++ b/tools/qdoc3/ditaxmlgenerator.cpp
@@ -2117,9 +2117,10 @@ DitaXmlGenerator::generateClassLikeNode(const InnerNode* inner, CodeMarker* mark
generateSince(qcn, marker);
enterSection("h2","Detailed Description");
generateBody(qcn, marker);
- if (cn)
+ if (cn) {
generateQmlText(cn->doc().body(), cn, marker, qcn->name());
- generateAlsoList(cn, marker);
+ generateAlsoList(cn, marker);
+ }
leaveSection();
leaveSection(); // </apiDesc>