Add null check.
This commit is contained in:
parent
a6a8ddd043
commit
e67db0f301
|
@ -480,6 +480,9 @@ int32_t dmProcessConfigReq(SDnodeMgmt *pMgmt, SRpcMsg *pMsg) {
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (pItem == NULL) {
|
||||||
|
return TSDB_CODE_CFG_NOT_FOUND;
|
||||||
|
}
|
||||||
if (!isConifgItemLazyMode(pItem)) {
|
if (!isConifgItemLazyMode(pItem)) {
|
||||||
TAOS_CHECK_RETURN(taosCfgDynamicOptions(pCfg, cfgReq.config, true));
|
TAOS_CHECK_RETURN(taosCfgDynamicOptions(pCfg, cfgReq.config, true));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue