diff --git a/server/compose/automation/expr_types.go b/server/compose/automation/expr_types.go index 8591f1ee4..6813e8f66 100644 --- a/server/compose/automation/expr_types.go +++ b/server/compose/automation/expr_types.go @@ -690,6 +690,10 @@ func (v *ComposeRecordValues) Clone() (expr.TypedValue, error) { } func (v *ComposeRecordValueErrorSet) Clone() (expr.TypedValue, error) { + if v.value == nil { + return nil, nil + } + errs := types.RecordValueErrorSet{ Set: make([]types.RecordValueError, len(v.value.Set)), }