From c603af6f50e49b72d00be2b7ee37171907e89b26 Mon Sep 17 00:00:00 2001 From: LaurenceLiZhixin <382673304@qq.com> Date: Sat, 8 May 2021 20:21:15 +0800 Subject: [PATCH] fix: fix nil ptr bug --- cluster/router/v3router/judger/attachment_match_judger.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cluster/router/v3router/judger/attachment_match_judger.go b/cluster/router/v3router/judger/attachment_match_judger.go index 95b24a5be4..7772a2d97e 100644 --- a/cluster/router/v3router/judger/attachment_match_judger.go +++ b/cluster/router/v3router/judger/attachment_match_judger.go @@ -36,6 +36,7 @@ func (amj *AttachmentMatchJudger) Judge(invocation protocol.Invocation) bool { if v.Empty == "" { return false } + continue } // exist this key str, ok := invAttaValue.(string) @@ -56,6 +57,7 @@ func (amj *AttachmentMatchJudger) Judge(invocation protocol.Invocation) bool { if v.Empty == "" { return false } + continue } // exist this key str, ok := invAttaValue.(string)