Skip to content

Commit

Permalink
Avoid nil pointer dereference (GoogleContainerTools#3605)
Browse files Browse the repository at this point in the history
Signed-off-by: David Gageot <[email protected]>
  • Loading branch information
dgageot authored and Miklos Kiss committed Feb 3, 2020
1 parent 11bafe6 commit d9ea6ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integration/rpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,10 @@ func randomPort() string {
}

func checkBuildAndDeployComplete(state proto.State) bool {
if state.BuildState == nil || state.DeployState == nil {
return false
}

for _, a := range state.BuildState.Artifacts {
if a != event.Complete {
return false
Expand Down

0 comments on commit d9ea6ae

Please sign in to comment.