Fixed error with Sets, part 2 #2246

This commit is contained in:
Alexey Milovidov 2018-04-20 00:36:58 +03:00
parent ce0ac3f8f8
commit 207a8cc03c

View File

@ -28,7 +28,9 @@ CreatingSetsBlockInputStream::CreatingSetsBlockInputStream(
if (elem.second.source)
{
children.push_back(elem.second.source);
elem.second.set->setHeader(elem.second.source->getHeader());
if (elem.second.set)
elem.second.set->setHeader(elem.second.source->getHeader());
}
}