diff --git a/src/client/src/tscLocal.c b/src/client/src/tscLocal.c index ab52ef396b57e63a20060e2346d2052e9b851c64..dfc0e3af4ed303b2b82c6b1cee4dee63c0a19e38 100644 --- a/src/client/src/tscLocal.c +++ b/src/client/src/tscLocal.c @@ -823,6 +823,9 @@ static int32_t tscProcessClientVer(SSqlObj *pSql) { // TODO add test cases. static int32_t checkForOnlineNode(SSqlObj* pSql) { int32_t* data = pSql->res.length; + if (data == NULL) { + return TSDB_CODE_SUCCESS; + } int32_t total = data[0]; int32_t online = data[1];