diff options
author | Martin Smith <martin.smith@nokia.com> | 2011-08-03 11:21:07 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2011-08-03 11:23:16 (GMT) |
commit | 99048b2664bd5271810ed7cae1dc0fd44a14fdac (patch) | |
tree | eb44bba8207cdf869f2f610986656dca93fc4f68 /tools | |
parent | eed8a63d17a7d324892f920b034db9e268f27685 (diff) | |
download | Qt-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')
-rw-r--r-- | tools/qdoc3/ditaxmlgenerator.cpp | 5 |
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> |