File tree Expand file tree Collapse file tree
src/Presentation/SmartStore.Web.Framework Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ public Language WorkingLanguage
238238 }
239239
240240 #region Get language from URL (if possible)
241- if ( _localizationSettings . SeoFriendlyUrlsForLanguagesEnabled && _httpContext != null )
241+ if ( _localizationSettings . SeoFriendlyUrlsForLanguagesEnabled && _httpContext != null && _httpContext . Request != null )
242242 {
243243 var helper = new LocalizedUrlHelper ( _httpContext . Request , true ) ;
244244 string seoCode ;
@@ -361,7 +361,7 @@ public Currency WorkingCurrency
361361 }
362362
363363 // find currency by domain ending
364- if ( currency == null )
364+ if ( currency == null && _httpContext != null && _httpContext . Request != null && _httpContext . Request . Url != null )
365365 {
366366 currency = _currencyService
367367 . GetAllCurrencies ( storeId : _storeContext . CurrentStore . Id )
You can’t perform that action at this time.
0 commit comments