Commit d209bd72 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Check for possible 0x0 access.

parent 27141eb6
...@@ -443,7 +443,7 @@ public: ...@@ -443,7 +443,7 @@ public:
// show when we're on the 'if' of an if statement // show when we're on the 'if' of an if statement
int index = path.size() - 1; int index = path.size() - 1;
IfStatementAST *ifStatement = path.at(index)->asIfStatement(); IfStatementAST *ifStatement = path.at(index)->asIfStatement();
if (ifStatement && isCursorOn(ifStatement->if_token) if (ifStatement && isCursorOn(ifStatement->if_token) && ifStatement->statement
&& ! ifStatement->statement->asCompoundStatement()) { && ! ifStatement->statement->asCompoundStatement()) {
_statement = ifStatement->statement; _statement = ifStatement->statement;
return index; return index;
......
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