Permalink
Browse files

Fix potential null pointer dereference in src/context.cpp

  • Loading branch information...
orbitcowboy committed Dec 22, 2014
1 parent cbd3fa1 commit 2690774f87b9fcb12b35153de82cde22248b3949
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)

0 comments on commit 2690774

Please sign in to comment.