mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Document assumptions that are being made to avoid NULL pointer dereferences
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "bitcoingui.h"
|
||||
#include "walletview.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
|
||||
#include <QHBoxLayout>
|
||||
@@ -69,6 +70,7 @@ bool WalletFrame::setCurrentWallet(const QString& name)
|
||||
|
||||
WalletView *walletView = mapWalletViews.value(name);
|
||||
walletStack->setCurrentWidget(walletView);
|
||||
assert(walletView);
|
||||
walletView->updateEncryptionStatus();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user