From b9e28db08902306d2cb37e3c005014a108031abf Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Sat, 8 Feb 2025 21:30:35 +0800 Subject: [PATCH] fix: nil pointer dereference --- internal/workflow/node-processor/deploy_node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/workflow/node-processor/deploy_node.go b/internal/workflow/node-processor/deploy_node.go index dccdf0e8..e3b6137f 100644 --- a/internal/workflow/node-processor/deploy_node.go +++ b/internal/workflow/node-processor/deploy_node.go @@ -53,7 +53,7 @@ func (n *deployNode) Process(ctx context.Context) error { } // 检测是否可以跳过本次执行 - if certificate.CreatedAt.Before(lastOutput.UpdatedAt) { + if lastOutput != nil && certificate.CreatedAt.Before(lastOutput.UpdatedAt) { if skippable, skipReason := n.checkCanSkip(ctx, lastOutput); skippable { n.AddOutput(ctx, n.node.Name, skipReason) return nil