fix: fix crash caused by null pointer

This commit is contained in:
dapan1121 2022-12-09 07:12:57 +08:00
parent 617cd40541
commit 43a349bc1e
1 changed files with 4 additions and 0 deletions

View File

@ -1782,6 +1782,10 @@ static int32_t setVnodeModifOpStmt(SInsertParseContext* pCxt, SCatalogReq* pCata
SVnodeModifOpStmt* pStmt) {
clearCatalogReq(pCatalogReq);
if (NULL == pMetaData) {
return TSDB_CODE_SUCCESS;
}
if (pStmt->usingTableProcessing) {
return getTableSchemaFromMetaData(pCxt, pMetaData, pStmt, true);
}