From 64c60741a04cb762b20230fe8664ed06f4bcb8c6 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 24 Jun 2019 14:08:19 +0900 Subject: [PATCH] Fix possible NRE --- BTCPayServer/Data/StoreData.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Data/StoreData.cs b/BTCPayServer/Data/StoreData.cs index 1c5397c1f..2894e39b3 100644 --- a/BTCPayServer/Data/StoreData.cs +++ b/BTCPayServer/Data/StoreData.cs @@ -146,7 +146,7 @@ namespace BTCPayServer.Data } } - if (!existing && supportedPaymentMethod == null && supportedPaymentMethod.PaymentId.IsBTCOnChain) + if (!existing && supportedPaymentMethod == null && paymentMethodId.IsBTCOnChain) { DerivationStrategy = null; }