From 0854dccfdef61a1b8247f37bc2c5f716ed834b2d Mon Sep 17 00:00:00 2001 From: Ivan <5627721+abyss7@users.noreply.github.com> Date: Thu, 11 Feb 2021 18:21:21 +0300 Subject: [PATCH] Fix ANTLR parser tests --- src/Interpreters/RewriteCountVariantsVisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Interpreters/RewriteCountVariantsVisitor.cpp b/src/Interpreters/RewriteCountVariantsVisitor.cpp index f7cce82a478..63bf5fce2e8 100644 --- a/src/Interpreters/RewriteCountVariantsVisitor.cpp +++ b/src/Interpreters/RewriteCountVariantsVisitor.cpp @@ -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);