diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index e529821b7c292..746dae73cb618 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -680,6 +680,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) {