diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-11-08 21:18:36 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-11-08 21:18:36 +0100 |
commit | dead0ff8cd90eb39f1d9278539d2b3579982b3de (patch) | |
tree | 566823e2886404bf81b3ee94d99ba03497119590 /src/qt/editaddressdialog.cpp | |
parent | 0fb0a38339e5cb404147c89f73ff10d962a47ca5 (diff) |
Add robustness against null models
Diffstat (limited to 'src/qt/editaddressdialog.cpp')
-rw-r--r-- | src/qt/editaddressdialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/editaddressdialog.cpp b/src/qt/editaddressdialog.cpp index 457e8cf0dc..8cc3c85d7a 100644 --- a/src/qt/editaddressdialog.cpp +++ b/src/qt/editaddressdialog.cpp @@ -56,6 +56,8 @@ void EditAddressDialog::loadRow(int row) bool EditAddressDialog::saveCurrentRow() { + if(!model) + return false; switch(mode) { case NewReceivingAddress: @@ -78,6 +80,8 @@ bool EditAddressDialog::saveCurrentRow() void EditAddressDialog::accept() { + if(!model) + return; if(!saveCurrentRow()) { switch(model->getEditStatus()) |