diff options
author | David Boddie <david.boddie@nokia.com> | 2011-07-22 13:06:28 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-07-22 13:06:28 (GMT) |
commit | 3f8b5c71d09f4f420575568ea991a856c96dd566 (patch) | |
tree | 20238939811a618e147d5efc772fb8aef8a3310c /tools | |
parent | 78cba11c4d2d0620d51d3201255589f81bb60d8e (diff) | |
download | Qt-3f8b5c71d09f4f420575568ea991a856c96dd566.zip Qt-3f8b5c71d09f4f420575568ea991a856c96dd566.tar.gz Qt-3f8b5c71d09f4f420575568ea991a856c96dd566.tar.bz2 |
qdoc: Fixed a crash caused by accessing a null pointer.
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 ae7385e..9f512d3 100644 --- a/tools/qdoc3/ditaxmlgenerator.cpp +++ b/tools/qdoc3/ditaxmlgenerator.cpp @@ -2098,9 +2098,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> |