We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab4e34b commit b670240Copy full SHA for b670240
src/Umbraco.Forms.Integrations.Commerce.EMerchantPay/Helpers/MappingFieldHelper.cs
@@ -1,4 +1,5 @@
1
-using System.Collections.Generic;
+using System;
2
+using System.Collections.Generic;
3
using System.Linq;
4
5
using Umbraco.Forms.Integrations.Commerce.EMerchantPay.Configuration;
@@ -18,7 +19,7 @@ public IEnumerable<string> GetMappings()
18
19
{
20
var mappings = _settingsParser.AsEnumerable(nameof(PaymentProviderSettings.MappingFields));
21
- if (mappings.Count() == 0) return Enumerable.Empty<string>();
22
+ if (mappings.Count() == 0) throw new ArgumentNullException(nameof(MappingFieldHelper));
23
24
return mappings;
25
0 commit comments