diff --git a/app/views/shipit/stacks/_banners.html.erb b/app/views/shipit/stacks/_banners.html.erb
index 9d829026f..dca2136a8 100644
--- a/app/views/shipit/stacks/_banners.html.erb
+++ b/app/views/shipit/stacks/_banners.html.erb
@@ -70,7 +70,12 @@
Continuous Delivery for this stack is currently paused because
- <%= link_to_if stack.deployment_checks_passed?, 'the pre-deploy checks failed', stack_commit_checks_path(stack, sha: stack.next_commit_to_deploy.sha) %>.
+ <% next_commit = stack.next_commit_to_deploy %>
+ <%= if stack.deployment_checks_passed? && next_commit
+ link_to 'the pre-deploy checks failed', stack_commit_checks_path(stack, sha: next_commit.sha)
+ else
+ 'the pre-deploy checks failed'
+ end %>.
You can either wait for them to pass, or trigger a deploy manually.