Avoid NULL pointer dereference when _walletModel is NULL (which is valid)
This commit is contained in:
parent
4971a9a3c9
commit
76fed838f3
1 changed files with 2 additions and 2 deletions
|
@ -122,8 +122,8 @@ void WalletView::setWalletModel(WalletModel *_walletModel)
|
||||||
overviewPage->setWalletModel(_walletModel);
|
overviewPage->setWalletModel(_walletModel);
|
||||||
receiveCoinsPage->setModel(_walletModel);
|
receiveCoinsPage->setModel(_walletModel);
|
||||||
sendCoinsPage->setModel(_walletModel);
|
sendCoinsPage->setModel(_walletModel);
|
||||||
usedReceivingAddressesPage->setModel(_walletModel->getAddressTableModel());
|
usedReceivingAddressesPage->setModel(_walletModel ? _walletModel->getAddressTableModel() : nullptr);
|
||||||
usedSendingAddressesPage->setModel(_walletModel->getAddressTableModel());
|
usedSendingAddressesPage->setModel(_walletModel ? _walletModel->getAddressTableModel() : nullptr);
|
||||||
|
|
||||||
if (_walletModel)
|
if (_walletModel)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue