Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix potential null pointer dereference in src/context.cpp
  • Loading branch information
orbitcowboy committed Dec 22, 2014
1 parent cbd3fa1 commit 2690774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 2690774

Please sign in to comment.