diff --git a/source/libs/index/src/indexFilter.c b/source/libs/index/src/indexFilter.c index 2a2865a955..72828e1daa 100644 --- a/source/libs/index/src/indexFilter.c +++ b/source/libs/index/src/indexFilter.c @@ -231,8 +231,10 @@ static int32_t sifInitParam(SNode *node, SIFParam *param, SIFCtx *ctx) { SIF_ERR_RET(sifGetValueFromNode(node, ¶m->condValue)); param->colId = -1; param->colValType = (uint8_t)(vn->node.resType.type); - if (strlen(vn->literal) <= sizeof(param->colName)) { + if (vn->literal != NULL && strlen(vn->literal) <= sizeof(param->colName)) { memcpy(param->colName, vn->literal, strlen(vn->literal)); + } else { + param->status = SFLT_NOT_INDEX; } break; }