summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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)