From d274d4a5793db343d6289f619bd01b4332d813fa Mon Sep 17 00:00:00 2001 From: Nikita Vasilev Date: Wed, 5 May 2021 00:36:30 +0300 Subject: [PATCH] fix --- src/Interpreters/TreeCNFConverter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Interpreters/TreeCNFConverter.cpp b/src/Interpreters/TreeCNFConverter.cpp index fac3007f394..2824c088f15 100644 --- a/src/Interpreters/TreeCNFConverter.cpp +++ b/src/Interpreters/TreeCNFConverter.cpp @@ -98,7 +98,7 @@ void pushOr(ASTPtr & query) { auto & child = or_func->arguments->children[i]; auto * and_func = child->as(); - if (and_func->name == "and") + if (and_func && and_func->name == "and") { and_node_id = i; }