From 11f2b7d734dcbe513df25e267e3bdd600974a7f6 Mon Sep 17 00:00:00 2001 From: Adam Bull Date: Fri, 6 Sep 2024 16:04:54 +0100 Subject: [PATCH] fix: nil pointer error (#920) --- internal/run/run.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/run/run.go b/internal/run/run.go index 83983283..97bd2ec1 100644 --- a/internal/run/run.go +++ b/internal/run/run.go @@ -178,11 +178,12 @@ func (w *Workflow) RunInner(ctx context.Context) error { } _, sourceRes, err := w.RunSource(ctx, w.RootStep, w.Source, "") - w.SourceResults[sourceRes.Source] = sourceRes if err != nil { return err } - + if sourceRes != nil { + w.SourceResults[sourceRes.Source] = sourceRes + } } if !w.SkipCleanup {