Skip to content

Commit ed775f2

Browse files
committed
Fixes System.ArgumentNullException when editing a currency
1 parent eb266b6 commit ed775f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Presentation/SmartStore.Web/Administration/Controllers/CurrencyController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ public ActionResult Edit(CurrencyModel model, bool continueEditing)
406406
if (ModelState.IsValid)
407407
{
408408
currency = model.ToEntity(currency);
409-
currency.DomainEndings = String.Join(",", model.DomainEndingsArray);
409+
currency.DomainEndings = string.Join(",", model.DomainEndingsArray ?? new string[0]);
410410

411411
if (!IsAttachedToStore(currency, _services.StoreService.GetAllStores(), false))
412412
{

0 commit comments

Comments
 (0)