Skip to content

Commit

Permalink
[skip ci] fix NullReferenceException
Browse files Browse the repository at this point in the history
  • Loading branch information
nopara73 committed Nov 19, 2018
1 parent 2e4307d commit 2351540
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -226,6 +226,11 @@ private void UpdateStates()
private void UpdateRequiredBtcLabel(CcjClientRound registrableRound)
#pragma warning restore CS0618 // Type or member is obsolete
{
if (Global.WalletService is null)
{
return; // Otherwise NullReferenceException at shutdown.
}

if (registrableRound == default)
{
if (RequiredBTC == default)
Expand Down

0 comments on commit 2351540

Please sign in to comment.