diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 2b8019395c9..468d7041110 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -539,7 +539,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)