Commit 3c1bfe0e authored by Andreas Pakulat's avatar Andreas Pakulat

backport r918185:

Fix one more crash during code-completion
parent a988d6ff
......@@ -140,7 +140,7 @@ KDevelop::QualifiedIdentifier namespaceScopeComponentFromContext(QualifiedIdenti
//This way we can correctly resolve the namespace-component for multiple externally defined classes,
//see testDeclareStructInNamespace() in test_duchain.cpp
if(classContext->parentContext() && classContext->parentContext()->type() == DUContext::Helper) {
if(classContext->parentContext() && classContext->parentContext()->type() == DUContext::Helper && !context->importedParentContexts().isEmpty()) {
classContext = context->importedParentContexts()[0].context(source);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment