fix(query): add null ptr check.

This commit is contained in:
Haojun Liao 2022-07-19 18:05:26 +08:00
parent ef17baedbe
commit a0428f5685
1 changed files with 5 additions and 3 deletions

View File

@ -1961,11 +1961,13 @@ int32_t initDelSkylineIterator(STableBlockScanInfo* pBlockScanInfo, STsdbReader*
SDelIdx idx = {.suid = pReader->suid, .uid = pBlockScanInfo->uid};
SDelIdx* pIdx = taosArraySearch(aDelIdx, &idx, tCmprDelIdx, TD_EQ);
if (pIdx != NULL) {
code = tsdbReadDelData(pDelFReader, pIdx, pDelData, NULL);
if (code != TSDB_CODE_SUCCESS) {
goto _err;
}
}
}
SDelData* p = NULL;
if (pMemTbData != NULL) {