diff --git a/context.go b/context.go index 35250667..5fa9111b 100644 --- a/context.go +++ b/context.go @@ -182,7 +182,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++ } }