mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
Prevent NRE exception
This commit is contained in:
parent
5565d8dae5
commit
10e52f08be
@ -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…
Reference in New Issue
Block a user