diff --git a/src/darksend.cpp b/src/darksend.cpp index c65acac09..e18cb9ca7 100644 --- a/src/darksend.cpp +++ b/src/darksend.cpp @@ -1756,7 +1756,13 @@ bool CDarksendPool::DoAutomaticDenominating(bool fDryRun, bool ready) } } - pSubmittedToMasternode = mnodeman.Find(dsq.vin); + CMasternode* pmn = mnodeman.Find(dsq.vin); + if(pmn == NULL) + { + LogPrintf("DoAutomaticDenominating --- dsq vin %s is not in masternode list!", dsq.vin.ToString()); + continue; + } + pSubmittedToMasternode = pmn; vecMasternodesUsed.push_back(dsq.vin); sessionDenom = dsq.nDenom;