handle except

This commit is contained in:
Shengliang 2022-03-25 14:52:24 +08:00
parent 77898958bb
commit c428c9395e
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ static void destroyThrdObj(SCliThrdObj* pThrd);
int i = 0, sz = transQueueSize(&conn->cliMsgs); \
for (; i < sz; i++) { \
pMsg = transQueueGet(&conn->cliMsgs, i); \
if (pMsg != NULL && (uint64_t)pMsg->ctx->ahandle == ahandle) { \
if (pMsg != NULL && pMsg->ctx != NULL && (uint64_t)pMsg->ctx->ahandle == ahandle) { \
break; \
} \
} \