Skip to content

Commit

Permalink
fix: panic when a record Summary is not a valid object
Browse files Browse the repository at this point in the history
Signed-off-by: Satyam Bhardwaj <sabhardw@redhat.com>

rh-pre-commit.version: 2.1.0
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
ramessesii2 authored and tekton-robot committed Mar 15, 2024
1 parent e0acc59 commit b6a131b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/watcher/results/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (c *Client) ensureResult(ctx context.Context, o Object, opts ...grpc.CallOp
return nil, err
}
var annotations map[string]string
if curr != nil && len(curr.Summary.Annotations) != 0 {
if curr != nil && curr.Summary != nil && len(curr.Summary.Annotations) != 0 {
copyKeys(recordSummaryAnnotations, curr.Summary.Annotations)
annotations = curr.Summary.Annotations
} else {
Expand Down

0 comments on commit b6a131b

Please sign in to comment.