dbms: fixed Null pointer [#METR-10498]

This commit is contained in:
Pavel Kartavyy 2014-04-07 19:48:16 +04:00
parent 61ebb6ea34
commit d9e931a8fe

View File

@ -500,7 +500,8 @@ void ExpressionAnalyzer::normalizeTreeImpl(ASTPtr & ast, MapOfASTs & finished_as
void ExpressionAnalyzer::makeExplicitSets(bool create_ordered_set)
{
makeExplicitSetsRecursively(ast, storage->getSampleBlock(), create_ordered_set);
if (storage && ast)
makeExplicitSetsRecursively(ast, storage->getSampleBlock(), create_ordered_set);
}
void ExpressionAnalyzer::makeExplicitSetsRecursively(ASTPtr & node, const Block & sample_block, bool create_ordered_set)