Check for 0x0 access

This commit is contained in:
Roberto Raggi
2009-08-04 11:58:04 +02:00
parent a61d3f90e4
commit 85e1b36652

View File

@@ -263,7 +263,7 @@ bool CheckDeclarator::visit(ObjCMethodPrototypeAST *ast)
fun->setPureVirtual(false);
fun->setReturnType(returnType);
if (ast->selector->asObjCSelectorWithArguments()) {
if (ast->selector && ast->selector->asObjCSelectorWithArguments()) {
// TODO: check the parameters (EV)
// fun->setVariadic(...);
// TODO: add arguments (EV)