Fix ANTLR parser tests

This commit is contained in:
Ivan 2021-02-11 18:21:21 +03:00 committed by GitHub
parent 263d751d64
commit 0854dccfde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ void RewriteCountVariantsVisitor::visit(ASTPtr & node)
void RewriteCountVariantsVisitor::visit(ASTFunction & func)
{
if (func.arguments->children.empty() || func.arguments->children.size() > 1 || !func.arguments->children[0])
if (!func.arguments || func.arguments->children.empty() || func.arguments->children.size() > 1 || !func.arguments->children[0])
return;
auto name = Poco::toLower(func.name);