diff options
-rw-r--r-- | src/plugins/cpptools/symbolfinder.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/cpptools/symbolfinder.cpp b/src/plugins/cpptools/symbolfinder.cpp index 33329d1046..9d63361bbf 100644 --- a/src/plugins/cpptools/symbolfinder.cpp +++ b/src/plugins/cpptools/symbolfinder.cpp @@ -217,6 +217,9 @@ void SymbolFinder::findMatchingDeclaration(const LookupContext &context, QList<Declaration *> *argumentCountMatch, QList<Declaration *> *nameMatch) { + if (!functionType) + return; + Scope *enclosingScope = functionType->enclosingScope(); while (! (enclosingScope->isNamespace() || enclosingScope->isClass())) enclosingScope = enclosingScope->enclosingScope(); |