Skip to content

Commit 1f97d5d

Browse files
committed
fix: ignore nil event
1 parent 40f76f5 commit 1f97d5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/server/event.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ func (s *Server) encodeEventsParallel(ctx context.Context, cache []*controller.E
118118
if !ok {
119119
return
120120
}
121+
if v == nil {
122+
continue
123+
}
121124
evt := Event{Data: eventAsJSON(v)}
122125
buf := bytes.NewBuffer(nil)
123126

0 commit comments

Comments
 (0)