diff --git a/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c b/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c index 95903d0ba0..c4eb8aa1f3 100644 --- a/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c +++ b/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c @@ -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)); }