mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
Avoid NULL pointer dereference when _walletModel is NULL (which is valid)
This commit is contained in:
parent
4971a9a3c9
commit
76fed838f3
@ -122,8 +122,8 @@ void WalletView::setWalletModel(WalletModel *_walletModel)
|
||||
overviewPage->setWalletModel(_walletModel);
|
||||
receiveCoinsPage->setModel(_walletModel);
|
||||
sendCoinsPage->setModel(_walletModel);
|
||||
usedReceivingAddressesPage->setModel(_walletModel->getAddressTableModel());
|
||||
usedSendingAddressesPage->setModel(_walletModel->getAddressTableModel());
|
||||
usedReceivingAddressesPage->setModel(_walletModel ? _walletModel->getAddressTableModel() : nullptr);
|
||||
usedSendingAddressesPage->setModel(_walletModel ? _walletModel->getAddressTableModel() : nullptr);
|
||||
|
||||
if (_walletModel)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user