aboutsummaryrefslogtreecommitdiff
path: root/src/qt/signverifymessagedialog.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2013-08-23 13:07:20 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2013-08-23 13:07:20 +0200
commit6728e007767fbb2f8eebc1936a3386adda1dbd3f (patch)
tree3d92b37a0b7357fb40d70d0d5e04873a52719652 /src/qt/signverifymessagedialog.cpp
parentb60012f2b6770105557db2af40dc34947e884330 (diff)
Bitcoin-Qt: extend some checks for valid model pointers
Diffstat (limited to 'src/qt/signverifymessagedialog.cpp')
-rw-r--r--src/qt/signverifymessagedialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/signverifymessagedialog.cpp b/src/qt/signverifymessagedialog.cpp
index 9118770f4c..1e9c84fe1a 100644
--- a/src/qt/signverifymessagedialog.cpp
+++ b/src/qt/signverifymessagedialog.cpp
@@ -102,6 +102,9 @@ void SignVerifyMessageDialog::on_pasteButton_SM_clicked()
void SignVerifyMessageDialog::on_signMessageButton_SM_clicked()
{
+ if (!model)
+ return;
+
/* Clear old signature to ensure users don't get confused on error with an old signature displayed */
ui->signatureOut_SM->clear();