fix: crash when throwing null exception_ptr

pull/93/merge
moneroexamples 6 years ago
parent f97b86ef75
commit 034512585b

@ -3,7 +3,7 @@ var config = {
mainnetExplorerUrl: "https://xmrchain.com/",
testnetExplorerUrl: "https://testnet.xmrchain.com/",
stagenetExplorerUrl: "http://162.210.173.150:8083/",
nettype: 0, /* 0 - MAINNET, 1 - TESTNET, 2 - STAGENET */
nettype: 1, /* 0 - MAINNET, 1 - TESTNET, 2 - STAGENET */
coinUnitPlaces: 12,
txMinConfirms: 10, // corresponds to CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE in Monero
txCoinbaseMinConfirms: 60, // corresponds to CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW in Monero

@ -978,7 +978,8 @@ CurrentBlockchainStatus::check_search_threads_for_exceptions()
{
auto eptr = st.second.get_functor().get_exception_ptr();
found_any_exception = true;
std::rethrow_exception(eptr);
if (eptr != nullptr)
std::rethrow_exception(eptr);
}
catch (std::exception const& e)
{

Loading…
Cancel
Save