Skip to content
Snippets Groups Projects
Commit 1ba39198 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Fixed possible null-pointer dereference.

parent f1e66546
No related branches found
Tags 0.8.57
No related merge requests found
......@@ -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;
}
......
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