fix iColHash null condition

This commit is contained in:
Minglei Jin 2024-12-11 17:20:16 +08:00
parent f676926188
commit ab10a1815d
1 changed files with 1 additions and 1 deletions

View File

@ -2534,7 +2534,7 @@ static int32_t tsdbCacheGetBatchFromMem(STsdb *pTsdb, tb_uid_t uid, SArray *pLas
}
tsdbRowClose(&rowIter);
if (tSimpleHashGetSize(iColHash) > 0) {
if (iColHash && tSimpleHashGetSize(iColHash) > 0) {
pRow = memRowIterGet(&iter, false, NULL, 0);
while (pRow) {
if (tSimpleHashGetSize(iColHash) == 0) {