fix(query): add null pointer check.

This commit is contained in:
Haojun Liao 2022-06-11 13:48:18 +08:00
parent f30ae95b9d
commit 80b7ba902c
1 changed files with 1 additions and 1 deletions

View File

@ -1238,7 +1238,7 @@ SSDataBlock* createOneDataBlock(const SSDataBlock* pDataBlock, bool copyData) {
return NULL;
}
if (pSrc->pData== NULL) {
if (pSrc->pData== NULL || pDst->pData == NULL) {
continue;
}
colDataAssign(pDst, pSrc, pDataBlock->info.rows);