From 2690774f87b9fcb12b35153de82cde22248b3949 Mon Sep 17 00:00:00 2001 From: Martin Ettl Date: Mon, 22 Dec 2014 19:23:34 +0100 Subject: Fix potential null pointer dereference in src/context.cpp --- src/context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12