loadwallet
crashing bitcoin-qt. Meant to fix #16937.
gui: only call getOrCreateWallet if wallet interface pointer not null #16955
pull icota wants to merge 1 commits into bitcoin:master from icota:qt-loadwallet-crash changing 1 files +1 −1-
icota commented at 2:47 pm on September 24, 2019: contributorAvoid early call to
-
gui: only call getOrCreateWallet if wallet interface pointer not null
Avoids early call to loadwallet crashing bitcoin-qt (https://github.com/bitcoin/bitcoin/issues/16937)
-
in src/qt/walletcontroller.cpp:34 in db31bcb475
30@@ -31,7 +31,7 @@ WalletController::WalletController(interfaces::Node& node, const PlatformStyle* 31 , m_options_model(options_model) 32 { 33 m_handler_load_wallet = m_node.handleLoadWallet([this](std::unique_ptr<interfaces::Wallet> wallet) { 34- getOrCreateWallet(std::move(wallet)); 35+ if (wallet) getOrCreateWallet(std::move(wallet));
promag commented at 2:58 pm on September 24, 2019:In what casewallet
is null?
emilengler commented at 7:48 pm on September 24, 2019:See line 95 inqt/walletcontroller.cpp
There it checks if the wallet is empty even though it isn’t null (I think).
promag commented at 9:31 am on September 25, 2019:This fix is incorrect.
icota commented at 12:12 pm on September 25, 2019:Okay. Care to elaborate?
DrahtBot added the label GUI on Sep 24, 2019icota closed this on Sep 25, 2019
DrahtBot locked this on Dec 16, 2021Labels
GUI
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 09:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 09:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me