undefined method `[]' for nil:NilClass in Sidekiq/Security::AutoFixWorker
https://sentry.gitlab.net/gitlab/staginggitlabcom/issues/2945117/?query=is%3Aunresolved%20NoMethodError
NoMethodError: undefined method `[]' for nil:NilClass
from ee/app/services/merge_requests/create_from_vulnerability_data_service.rb:46:in `block in create_patch'
from ee/app/services/merge_requests/create_from_vulnerability_data_service.rb:46:in `map'
from ee/app/services/merge_requests/create_from_vulnerability_data_service.rb:46:in `create_patch'
from ee/app/services/merge_requests/create_from_vulnerability_data_service.rb:22:in `execute'
from ee/app/services/vulnerability_feedback/create_service.rb:95:in `create_merge_request'
from ee/app/services/vulnerability_feedback/create_service.rb:13:in `execute'
from ee/app/services/security/auto_fix_service.rb:20:in `block in execute'
from activerecord (6.1.4.1) lib/active_record/relation/delegation.rb:88:in `each'
from activerecord (6.1.4.1) lib/active_record/relation/delegation.rb:88:in `each'
from ee/app/services/security/auto_fix_service.rb:16:in `execute'
from ee/app/workers/security/auto_fix_worker.rb:23:in `block in perform'
from activesupport (6.1.4.1) lib/active_support/core_ext/object/try.rb:12:in `try'
from ee/app/workers/security/auto_fix_worker.rb:18:in `perform'
from sidekiq (6.3.1) lib/sidekiq/processor.rb:196:in `execute_job'
from sidekiq (6.3.1) lib/sidekiq/processor.rb:164:in `block (2 levels) in process'
from sidekiq (6.3.1) lib/sidekiq/middleware/chain.rb:138:in `block in invoke'
from lib/gitlab/database/load_balancing/sidekiq_server_middleware.rb:26:in `call'