diff --git a/utils_linux.go b/utils_linux.go index c6a3489737c..329486f69ad 100644 --- a/utils_linux.go +++ b/utils_linux.go @@ -392,6 +392,9 @@ func (r *runner) checkTerminal(config *specs.Process) error { } func validateProcessSpec(spec *specs.Process) error { + if spec == nil { + return fmt.Errorf("process property must not be empty") + } if spec.Cwd == "" { return fmt.Errorf("Cwd property must not be empty") }