fix(query): add null ptr check.

This commit is contained in:
Haojun Liao 2022-09-28 14:53:06 +08:00
parent 3c97f6c257
commit 50ecf9eb43
1 changed files with 2 additions and 3 deletions

View File

@ -635,7 +635,7 @@ _return:
input.msgType = qwMsg->msgType;
code = qwHandlePostPhaseEvents(QW_FPARAMS(), QW_PHASE_POST_QUERY, &input, NULL);
if (QW_EVENT_RECEIVED(ctx, QW_EVENT_FETCH)) {
if (ctx != NULL && QW_EVENT_RECEIVED(ctx, QW_EVENT_FETCH)) {
void *rsp = NULL;
int32_t dataLen = 0;
SOutputData sOutput = {0};
@ -660,8 +660,7 @@ _return:
}
}
QW_RET(TSDB_CODE_SUCCESS);
QW_RET(code);
}
int32_t qwProcessCQuery(QW_FPARAMS_DEF, SQWMsg *qwMsg) {