NoMethodError in FrontendController#sepa_authform

undefined method `location_id' for nil:NilClass

Extracted source (around line #1094):
1092
1093
1094
1095
1096
1097
              
kws_om_package = kws_om_order.try(:kws_om_package)
kws_om_setting = kws_om_order.try(:domain).try(:kws_om_setting) ## outsider
club_admin_location = Location.find( kws_om_order.location_id ).attributes.slice('name', 'email') if kws_om_order.location_id.present?
@kws_om_order_presenter = Frontend::OnlineMembershipOrderPresenter.new( kws_om_order, kws_om_package, kws_om_setting, club_admin_location )
# @opening_hour = current_theme.field_values.where( custom_field_slug: 'opening_hours' ).first ## THIS ONE IS OLD
@opening_hour_content = @footer.try(:opening_hour_html) ## KWS Inhalt > Footer

Rails.root: /var/www/clients/client1/web1/web/www

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"order_number"=>"67e0b3",
 "format"=>"pdf"}

Response

Headers:

None