Skip to content

Commit ce07bb2

Browse files
authored
Merge pull request #3129 from Komey/master
fix mesos client panic while ExecutorPID is nill
2 parents 5a78c9d + c884988 commit ce07bb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/internal/container/mesos/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (c *client) containerPID(id string) (int, error) {
108108
return err
109109
}
110110

111-
if c.cntr.ContainerStatus != nil {
111+
if c.cntr.ContainerStatus != nil && c.cntr.ContainerStatus.ExecutorPID != nil {
112112
pid = int(*c.cntr.ContainerStatus.ExecutorPID)
113113
} else {
114114
err = fmt.Errorf("error fetching Pid")

0 commit comments

Comments
 (0)