diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 392cf5bb721..9d6bfbb0db7 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -900,7 +900,7 @@ module Ci # sure that the format is always correct when accessing the retry options, # even on old builds. def normalized_retry - value = options[:retry] + value = options&.dig(:retry) value.is_a?(Integer) ? { max: value } : value.to_h end