summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Ettl <ettl.martin78@googlemail.com>2014-12-22 18:23:34 (GMT)
committerMartin Ettl <ettl.martin78@googlemail.com>2014-12-22 18:23:34 (GMT)
commit2690774f87b9fcb12b35153de82cde22248b3949 (patch)
treed378cea4211a02c4aa0efac3fe88c0bfd43bc81c /src
parentcbd3fa183815191ac5f172a2bac62991642c0b5e (diff)
downloadDoxygen-2690774f87b9fcb12b35153de82cde22248b3949.zip
Doxygen-2690774f87b9fcb12b35153de82cde22248b3949.tar.gz
Doxygen-2690774f87b9fcb12b35153de82cde22248b3949.tar.bz2
Fix potential null pointer dereference in src/context.cpp
Diffstat (limited to 'src')
-rw-r--r--src/context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/context.cpp b/src/context.cpp
index ae5d5bc..551db1a 100644
--- a/src/context.cpp
+++ b/src/context.cpp
@@ -5244,7 +5244,7 @@ class NestingNodeContext::Private : public PropertyMapper
void addClasses(bool inherit, bool hideSuper)
{
ClassDef *cd = m_def->definitionType()==Definition::TypeClass ? (ClassDef*)m_def : 0;
- if (inherit)
+ if (cd && inherit)
{
bool hasChildren = !cd->visited && !hideSuper && classHasVisibleChildren(cd);
if (hasChildren)