summaryrefslogtreecommitdiffstats
path: root/src/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/context.cpp')
-rw-r--r--src/context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/context.cpp b/src/context.cpp
index 95fb82d..7f3a33e 100644
--- a/src/context.cpp
+++ b/src/context.cpp
@@ -4062,7 +4062,7 @@ class MemberContext::Private : public DefinitionContext<MemberContext::Private>
s_inst.addProperty("nameWithContextFor", &Private::nameWithContextFor);
init=TRUE;
}
- if (!md->cookie()) { md->setCookie(new MemberContext::Private::Cachable(md)); }
+ if (md && !md->cookie()) { md->setCookie(new MemberContext::Private::Cachable(md)); }
Cachable &cache = getCache();
cache.propertyAttrs.reset(TemplateList::alloc());