Commit 194591da authored by Nikolai Kosjar's avatar Nikolai Kosjar

C++: Fix potential null pointer dereference

Change-Id: I38d99b27ff76f44535c02c64886bede0a99c6225
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent fffb3d4d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment