From 475c03a3c2334aef0218804e1f494f85820be5d6 Mon Sep 17 00:00:00 2001 From: hjxilinx Date: Thu, 9 Jan 2020 10:20:25 +0800 Subject: [PATCH] add more security check for async union processing. --- src/client/src/tscUtil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 9825d677dc..6ffcdb0e74 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -2005,7 +2005,7 @@ bool hasMoreVnodesToTry(SSqlObj* pSql) { SQueryInfo* pQueryInfo = tscGetQueryInfoDetail(pCmd, pCmd->clauseIndex); SMeterMetaInfo* pMeterMetaInfo = tscGetMeterMetaInfoFromQueryInfo(pQueryInfo, 0); - if (!UTIL_METER_IS_SUPERTABLE(pMeterMetaInfo)) { + if (!UTIL_METER_IS_SUPERTABLE(pMeterMetaInfo) || (pMeterMetaInfo->pMetricMeta == NULL)) { return false; } -- GitLab