diff --git a/src/libs/3rdparty/cplusplus/Matcher.cpp b/src/libs/3rdparty/cplusplus/Matcher.cpp index 447bec51184..e713394bdd7 100644 --- a/src/libs/3rdparty/cplusplus/Matcher.cpp +++ b/src/libs/3rdparty/cplusplus/Matcher.cpp @@ -47,7 +47,7 @@ bool Matcher::match(const Type *type, const Type *otherType, Matcher *matcher) { if (type == otherType) return true; - if (!type) + if (!type || !otherType) return false; return type->match0(otherType, matcher);