Skip to content

Commit

Permalink
Merge pull request #270 from orbitcowboy/master
Browse files Browse the repository at this point in the history
Fix potential null pointer dereference in src/context.cpp
  • Loading branch information
Dimitri van Heesch committed Dec 26, 2014
2 parents cbd3fa1 + 2690774 commit ed39dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context.cpp
Original file line number Diff line number Diff line change
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 ed39dab

Please sign in to comment.