Commit 1ba39198 authored by Erik Verbruggen's avatar Erik Verbruggen

Fixed possible null-pointer dereference.

parent f1e66546
......@@ -394,8 +394,11 @@ bool CheckName::visit(ObjCSelectorWithArgumentsAST *ast)
names.push_back(name);
}
_name = control()->selectorNameId(&names[0], names.size(), true);
ast->selector_name = _name;
if (!names.empty()) {
_name = control()->selectorNameId(&names[0], names.size(), true);
ast->selector_name = _name;
}
return false;
}
......
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