diff --git a/runtime/reporter.go b/runtime/reporter.go index 544852a..51d5e59 100644 --- a/runtime/reporter.go +++ b/runtime/reporter.go @@ -99,7 +99,7 @@ func (r *Reporter) Fire(entry *log.Entry) error { var step *runnerv1.StepState if v, ok := entry.Data["stepNumber"]; ok { - if v, ok := v.(int); ok { + if v, ok := v.(int); ok && len(r.state.Steps) > v { step = r.state.Steps[v] } }