diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 74f36e9ab..2a2f8b5b2 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -549,7 +549,9 @@ void CWallet::SyncMetaData(std::pair ran } } - assert(copyFrom); + if (!copyFrom) { + return; + } // Now copy data from copyFrom to rest: for (TxSpends::iterator it = range.first; it != range.second; ++it)