Commit ed39dab5 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Merge pull request #270 from orbitcowboy/master

Fix potential null pointer dereference in src/context.cpp
parents cbd3fa18 2690774f
...@@ -5244,7 +5244,7 @@ class NestingNodeContext::Private : public PropertyMapper ...@@ -5244,7 +5244,7 @@ class NestingNodeContext::Private : public PropertyMapper
void addClasses(bool inherit, bool hideSuper) void addClasses(bool inherit, bool hideSuper)
{ {
ClassDef *cd = m_def->definitionType()==Definition::TypeClass ? (ClassDef*)m_def : 0; ClassDef *cd = m_def->definitionType()==Definition::TypeClass ? (ClassDef*)m_def : 0;
if (inherit) if (cd && inherit)
{ {
bool hasChildren = !cd->visited && !hideSuper && classHasVisibleChildren(cd); bool hasChildren = !cd->visited && !hideSuper && classHasVisibleChildren(cd);
if (hasChildren) if (hasChildren)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment