diff --git a/src/plugins/cpptools/symbolfinder.cpp b/src/plugins/cpptools/symbolfinder.cpp index 0c0c1f3d15a..7147f1d1c41 100644 --- a/src/plugins/cpptools/symbolfinder.cpp +++ b/src/plugins/cpptools/symbolfinder.cpp @@ -436,6 +436,9 @@ QList SymbolFinder::findMatchingDeclaration(const LookupContext & Function *functionType) { QList result; + if (!functionType) + return result; + QList nameMatch, argumentCountMatch, typeMatch; findMatchingDeclaration(context, functionType, &typeMatch, &argumentCountMatch, &nameMatch); result.append(typeMatch);