Document assumptions that are being made to avoid NULL pointer dereferences

This commit is contained in:
practicalswift
2017-08-28 09:24:17 +02:00
parent 6866b4912b
commit fdc329376c
3 changed files with 5 additions and 0 deletions

View File

@@ -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;
}