mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-13 11:35:51 +01:00
Prevent NRE exception
This commit is contained in:
parent
5565d8dae5
commit
10e52f08be
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ namespace BTCPayServer.Services.Rates
|
|||
{
|
||||
LastRequested = LastRequested
|
||||
};
|
||||
if (_Latest is LatestFetch fetch)
|
||||
if (_Latest is LatestFetch fetch && fetch.Latest is PairRate[])
|
||||
{
|
||||
state.LastUpdated = fetch.Updated;
|
||||
state.Rates = fetch.Latest
|
||||
|
|
Loading…
Add table
Reference in a new issue