File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/Smartstore.Modules/Smartstore.Stripe/Controllers Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -245,8 +245,10 @@ public async Task<IActionResult> ConfirmOrder(string formData)
245245 var paymentIntentService = new PaymentIntentService ( ) ;
246246 PaymentIntent paymentIntent = null ;
247247
248- var shippingOption = customer . GenericAttributes . Get < ShippingOption > ( SystemCustomerAttributeNames . SelectedShippingOption , store . Id ) ;
249- var shipping = await GetShippingAddressAsync ( customer , shippingOption . Name ) ;
248+ var shippingOption = customer . GenericAttributes . Get < ShippingOption > ( SystemCustomerAttributeNames . SelectedShippingOption , store . Id ) ;
249+ var shipping = shippingOption != null
250+ ? await GetShippingAddressAsync ( customer , shippingOption . Name )
251+ : null ;
250252
251253 if ( state . PaymentIntent == null )
252254 {
You can’t perform that action at this time.
0 commit comments