Skip to content
Snippets Groups Projects
Commit e855e025 authored by David Schulz's avatar David Schulz Committed by hjk
Browse files

Editor: Fix null-pointer dereference


Task-number: QTCREATORBUG-7330
Change-Id: I5c76e5ce4e3ab7f0659a7df82301b853a9983da1
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent cea8205f
No related branches found
No related tags found
No related merge requests found
...@@ -197,6 +197,7 @@ static QSharedPointer<FunctionDeclDefLink> findLinkHelper(QSharedPointer<Functio ...@@ -197,6 +197,7 @@ static QSharedPointer<FunctionDeclDefLink> findLinkHelper(QSharedPointer<Functio
// the parens are necessary for finding good places for changes // the parens are necessary for finding good places for changes
if (!targetFuncDecl->lparen_token || !targetFuncDecl->rparen_token) if (!targetFuncDecl->lparen_token || !targetFuncDecl->rparen_token)
return noResult; return noResult;
QTC_ASSERT(targetFuncDecl->symbol, return noResult);
// if the source and target argument counts differ, something is wrong // if the source and target argument counts differ, something is wrong
QTC_ASSERT(targetFuncDecl->symbol->argumentCount() == link->sourceFunction->argumentCount(), return noResult); QTC_ASSERT(targetFuncDecl->symbol->argumentCount() == link->sourceFunction->argumentCount(), return noResult);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment