diff options
author | Martin Ettl <ettl.martin78@googlemail.com> | 2014-12-22 18:23:34 (GMT) |
---|---|---|
committer | Martin Ettl <ettl.martin78@googlemail.com> | 2014-12-22 18:23:34 (GMT) |
commit | 2690774f87b9fcb12b35153de82cde22248b3949 (patch) | |
tree | d378cea4211a02c4aa0efac3fe88c0bfd43bc81c /src/context.cpp | |
parent | cbd3fa183815191ac5f172a2bac62991642c0b5e (diff) | |
download | Doxygen-2690774f87b9fcb12b35153de82cde22248b3949.zip Doxygen-2690774f87b9fcb12b35153de82cde22248b3949.tar.gz Doxygen-2690774f87b9fcb12b35153de82cde22248b3949.tar.bz2 |
Fix potential null pointer dereference in src/context.cpp
Diffstat (limited to 'src/context.cpp')
-rw-r--r-- | src/context.cpp | 2 |
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) |