Skip to content

Commit

Permalink
Protect against nil defref in update resp handling (#1025)
Browse files Browse the repository at this point in the history
If there is an error returned, the response here will be nil so use the
getter that protects against that situation.
  • Loading branch information
Matt McShane authored Feb 1, 2023
1 parent 093eabe commit 18824b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/internal_workflow_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1663,7 +1663,7 @@ func (w *workflowClientInterceptor) UpdateWorkflow(
},
},
})
handle := &updateHandle{ref: resp.UpdateRef}
handle := &updateHandle{ref: resp.GetUpdateRef()}
if err != nil {
handle.err = err
return handle, nil
Expand Down

0 comments on commit 18824b6

Please sign in to comment.