diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index d963c8905db52b95cf8039e7bf5a999e10169e54..ba465c28b963155ef83b9d9617267fe0c0b26beb 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -2546,6 +2546,10 @@ int32_t setShowInfo(SSqlObj* pSql, struct SSqlInfo* pInfo) { } } }else if (type == SHOW_VNODES) { + if (NULL == pInfo->pDCLInfo) { + return invalidSqlErrMsg(pCmd, "No specified ip of dnode"); + } + // show vnodes may be ip addr of dnode in payload if (pInfo->pDCLInfo->nTokens > 0) { SSQLToken* pDnodeIp = &pInfo->pDCLInfo->a[0];