Skip to content

Commit

Permalink
fix: panic on wait command if event is null (#3424)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarabala1979 committed Jul 8, 2020
1 parent c10da5e commit 1e736b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/argo/commands/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,12 @@ func waitOnOne(serviceClient workflowpkg.WorkflowServiceClient, ctx context.Cont
log.Debug("Re-establishing workflow watch")
stream, err = serviceClient.WatchWorkflows(ctx, req)
errors.CheckError(err)
continue
}
errors.CheckError(err)
if event == nil {
continue
}
wf := event.Object
if !wf.Status.FinishedAt.IsZero() {
if !quiet {
Expand Down

0 comments on commit 1e736b2

Please sign in to comment.