mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 13:43:46 +01:00
Fix nullreferenceexception
This commit is contained in:
parent
bf7ae178ef
commit
1521ec8071
@ -2,7 +2,7 @@
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<Version>1.0.0.40</Version>
|
||||
<Version>1.0.0.41</Version>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Remove="Build\dockerfiles\**" />
|
||||
|
@ -9,10 +9,11 @@
|
||||
var lastStatus = waiter.Instance.LastStatus;
|
||||
|
||||
var synching = waiterState == NBXplorerState.Synching &&
|
||||
lastStatus != null &&
|
||||
lastStatus.NodeBlocks.HasValue &&
|
||||
lastStatus.NodeHeaders.HasValue &&
|
||||
lastStatus.VerificationProgress.HasValue;
|
||||
var verificationProgress = lastStatus.VerificationProgress.HasValue ? lastStatus.VerificationProgress.Value * 100 : 0.0;
|
||||
var verificationProgress = lastStatus != null && lastStatus.VerificationProgress.HasValue ? lastStatus.VerificationProgress.Value * 100 : 0.0;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
Loading…
Reference in New Issue
Block a user