From 3aa6366b2d1cfe6a16e1630012d865cc03ee745d Mon Sep 17 00:00:00 2001 From: hktalent <18223385+hktalent@users.noreply.github.com> Date: Wed, 23 Nov 2022 20:22:05 +0800 Subject: [PATCH] fixed #3404 2022-11-23 --- context.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/context.go b/context.go index c41c71ecf9..e6856c7211 100644 --- a/context.go +++ b/context.go @@ -171,7 +171,9 @@ func (c *Context) FullPath() string { func (c *Context) Next() { c.index++ for c.index < int8(len(c.handlers)) { - c.handlers[c.index](c) + if nil != c.handlers[c.index] { + c.handlers[c.index](c) + } c.index++ } }