Prevent NRE exception

This commit is contained in:
nicolas.dorier 2020-03-26 01:21:33 +09:00
parent 5565d8dae5
commit 10e52f08be
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -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