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++ } }