mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 22:11:48 +01:00
Fix NRE
This commit is contained in:
parent
4a71b952b6
commit
54c20b26cc
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ public class StoreEmailRuleProcessorSender : EventHostedServiceBase
|
|||
var sender = await _emailSenderFactory.GetEmailSender(invoiceEvent.Invoice.StoreId);
|
||||
foreach (UIStoresController.StoreEmailRule actionableRule in actionableRules)
|
||||
{
|
||||
var recipients = actionableRule.To.Split(",", StringSplitOptions.RemoveEmptyEntries)
|
||||
var recipients = (actionableRule.To?.Split(",", StringSplitOptions.RemoveEmptyEntries)??Array.Empty<string>())
|
||||
.Select(o => { MailboxAddressValidator.TryParse(o, out var mb); return mb; })
|
||||
.Where(o => o != null)
|
||||
.ToList();
|
||||
|
|
Loading…
Add table
Reference in a new issue