From 883118156a185f3b8ff8d1c4ec4c372450c7c9ef Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Wed, 5 Mar 2025 12:21:50 -0300 Subject: [PATCH] fix(smallstrip,exceptions): missing return causing nil de-reference --- smalltrip/exceptions/exceptions.go | 1 + 1 file changed, 1 insertion(+) diff --git a/smalltrip/exceptions/exceptions.go b/smalltrip/exceptions/exceptions.go index 897e63d..24d8de4 100644 --- a/smalltrip/exceptions/exceptions.go +++ b/smalltrip/exceptions/exceptions.go @@ -61,6 +61,7 @@ func (e Exception) ServeHTTP(w http.ResponseWriter, r *http.Request) { handler, ok := r.Context().Value(handlerFuncCtxKey).(HandlerFunc) if !ok { e.handler(e, w, r) + return } handler(e, w, r)