Skip to content

Commit

Permalink
Merge pull request #4451 from crazy-max/fix-panic-history
Browse files Browse the repository at this point in the history
llbsolver: fix possible panic when setting event to nil
  • Loading branch information
tonistiigi authored Nov 29, 2023
2 parents c9ee849 + 9d39af0 commit 06c971f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solver/llbsolver/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ func (h *HistoryQueue) Listen(ctx context.Context, req *controlapi.BuildHistoryR
}
h.mu.Unlock()
for _, e := range events {
if e.Record == nil {
if e == nil || e.Record == nil {
continue
}
if err := f(e); err != nil {
Expand Down

0 comments on commit 06c971f

Please sign in to comment.