diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index f8c6f9e87..7542be821 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -569,6 +569,9 @@ void CWallet::SyncMetaData(std::pair ran copyFrom = &mapWallet[hash]; } } + + assert(copyFrom); + // Now copy data from copyFrom to rest: for (TxSpends::iterator it = range.first; it != range.second; ++it) {