Skip to content

Commit

Permalink
Merge pull request #3129 from Komey/master
Browse files Browse the repository at this point in the history
fix mesos client panic while ExecutorPID is nill
  • Loading branch information
bobbypage committed Nov 9, 2022
2 parents 5a78c9d + c884988 commit ce07bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/internal/container/mesos/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (c *client) containerPID(id string) (int, error) {
return err
}

if c.cntr.ContainerStatus != nil {
if c.cntr.ContainerStatus != nil && c.cntr.ContainerStatus.ExecutorPID != nil {
pid = int(*c.cntr.ContainerStatus.ExecutorPID)
} else {
err = fmt.Errorf("error fetching Pid")
Expand Down

0 comments on commit ce07bb2

Please sign in to comment.