undefined method `licensed_feature_available?' for nil:NilClass
https://sentry.gitlab.net/gitlab/staginggitlabcom/issues/3040187/?query=is%3Aunresolved
NoMethodError: undefined method `licensed_feature_available?' for nil:NilClass
from ee/app/models/ee/audit_event.rb:60:in `stream_to_external_destinations'
from ee/app/services/ee/audit_event_service.rb:241:in `stream_event_to_external_destinations'
from app/services/audit_event_service.rb:137:in `save_or_track'
from app/services/audit_event_service.rb:117:in `log_security_event_to_database'
from app/services/audit_event_service.rb:46:in `security_event'
from ee/app/services/ee/audit_event_service.rb:128:in `security_event'
from ee/app/services/ee/projects/create_service.rb:133:in `log_audit_event'
from ee/app/services/ee/projects/create_service.rb:47:in `execute'
from app/services/concerns/measurable.rb:35:in `execute'
from app/controllers/projects_controller.rb:75:in `create'
from actionpack (6.1.4.1) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
from actionpack (6.1.4.1) lib/abstract_controller/base.rb:228:in `process_action'
from actionpack (6.1.4.1) lib/action_controller/metal/rendering.rb:30:in `process_action'
from actionpack (6.1.4.1) lib/abstract_controller/callbacks.rb:42:in `block in process_action'
from activesupport (6.1.4.1) lib/active_support/callbacks.rb:117:in `block in run_callbacks'
from ee/lib/gitlab/ip_address_state.rb:10:in `with'
from ee/app/controllers/ee/application_controller.rb:44:in `set_current_ip_address'
from activesupport (6.1.4.1) lib/active_support/callbacks.rb:126:in `block in run_callbacks'
from app/controllers/application_controller.rb:504:in `set_current_admin'
Edited by Thong Kuah