From 83036d4628a63cca78ec027818e20fd8de5dad63 Mon Sep 17 00:00:00 2001 From: hktalent <18223385+hktalent@users.noreply.github.com> Date: Wed, 23 Nov 2022 21:23:27 +0800 Subject: [PATCH] up 2022-11-23 --- context.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/context.go b/context.go index 5fa9111b..96cab1f7 100644 --- a/context.go +++ b/context.go @@ -152,7 +152,9 @@ func (c *Context) HandlerName() string { func (c *Context) HandlerNames() []string { hn := make([]string, 0, len(c.handlers)) for _, val := range c.handlers { - hn = append(hn, nameOfFunction(val)) + if nil != val { + hn = append(hn, nameOfFunction(val)) + } } return hn }