diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 5d73e8f6b..f66b1b204 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -1417,7 +1417,10 @@ UniValue getchaintips(const UniValue& params, bool fHelp) of another block. */ std::set setTips; BOOST_FOREACH(const PAIRTYPE(const uint256, CBlockIndex*)& item, mapBlockIndex) - setTips.insert(item.second); + { + if ( item != 0 ) + setTips.insert(item.second); + } BOOST_FOREACH(const PAIRTYPE(const uint256, CBlockIndex*)& item, mapBlockIndex) { const CBlockIndex* pprev=0;