diff --git a/src/plugins/cpptools/symbolfinder.cpp b/src/plugins/cpptools/symbolfinder.cpp index 33329d1046c..9d63361bbf1 100644 --- a/src/plugins/cpptools/symbolfinder.cpp +++ b/src/plugins/cpptools/symbolfinder.cpp @@ -217,6 +217,9 @@ void SymbolFinder::findMatchingDeclaration(const LookupContext &context, QList *argumentCountMatch, QList *nameMatch) { + if (!functionType) + return; + Scope *enclosingScope = functionType->enclosingScope(); while (! (enclosingScope->isNamespace() || enclosingScope->isClass())) enclosingScope = enclosingScope->enclosingScope();