From c643c48287cea81f12ceed068323a5b493438220 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Thu, 24 Mar 2022 15:53:01 +0800 Subject: [PATCH] handle except --- source/libs/transport/src/transComm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/libs/transport/src/transComm.c b/source/libs/transport/src/transComm.c index 2d6485b346..8b668092dd 100644 --- a/source/libs/transport/src/transComm.c +++ b/source/libs/transport/src/transComm.c @@ -280,6 +280,9 @@ void* transCtxDumpVal(STransCtx* ctx, int32_t key) { } void* transCtxDumpBrokenlinkVal(STransCtx* ctx, int32_t* msgType) { void *ret = NULL; + if (ctx->brokenVal.clone == NULL) { + return ret; + } (*ctx->brokenVal.clone)(ctx->brokenVal.val, &ret); *msgType = ctx->brokenVal.msgType;