Skip to content

Commit

Permalink
fix: nil pointer in watch testworkflows (#6207)
Browse files Browse the repository at this point in the history
  • Loading branch information
ed382 authored Feb 28, 2025
1 parent a4c6c30 commit 2bd61a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kubectl-testkube/commands/testworkflows/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ func watchTestWorkflowLogs(id string, signature []testkube.TestWorkflowSignature

// Check if result stream is closed and if execution is finished
result = printTestWorkflowLogs(signature, notifications)
if result.Status != nil && *result.Status != testkube.RUNNING_TestWorkflowStatus {
if result != nil && result.Status != nil && *result.Status != testkube.RUNNING_TestWorkflowStatus {
return fmt.Errorf("test workflow execution is not finished but channel is closed")
}

Expand Down

0 comments on commit 2bd61a3

Please sign in to comment.