diff --git a/event.go b/event.go index 51ea4bb..6f8341c 100644 --- a/event.go +++ b/event.go @@ -698,6 +698,9 @@ func (e *Event) Interface(key string, i interface{}) *Event { // CallerSkipFrame instructs any future Caller calls to skip the specified number of frames. // This includes those added via hooks from the context. func (e *Event) CallerSkipFrame(skip int) *Event { + if e == nil { + return e + } e.skipFrame += skip return e }