Add null check.

This commit is contained in:
xiao-77 2024-11-28 15:47:14 +08:00
parent a6a8ddd043
commit e67db0f301
1 changed files with 3 additions and 0 deletions

View File

@ -480,6 +480,9 @@ int32_t dmProcessConfigReq(SDnodeMgmt *pMgmt, SRpcMsg *pMsg) {
return code;
}
}
if (pItem == NULL) {
return TSDB_CODE_CFG_NOT_FOUND;
}
if (!isConifgItemLazyMode(pItem)) {
TAOS_CHECK_RETURN(taosCfgDynamicOptions(pCfg, cfgReq.config, true));
}