diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-06-29 14:44:07 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-06-29 15:03:15 +0200 |
commit | 4c72cc33ebcc4267e68a73ad04b7f88570e990fb (patch) | |
tree | ba63009cdd8f7a2a31fc681dee3c75397c899b94 /src/qt/transactionview.cpp | |
parent | 080ec5209172ac9605f1434559dbb3c1e012b10a (diff) | |
parent | fd9599b1358a314b073a9ca0a68ca8037915d91d (diff) |
Merge #10673: [qt] Avoid potential null pointer dereference in TransactionView::exportClicked()
fd9599b [qt] Avoid potential null pointer dereference in TransactionView::exportClicked() (practicalswift)
Tree-SHA512: 33cbb65bd86aceb58918eb0a19e1727599a22285e7c89d4e7d3b2639c879dc8939708fd506006c6c092f624050d1131f997cc37f837cb980aa440f8abe5a3c18
Diffstat (limited to 'src/qt/transactionview.cpp')
-rw-r--r-- | src/qt/transactionview.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp index e3e070b27f..43d6e8826b 100644 --- a/src/qt/transactionview.cpp +++ b/src/qt/transactionview.cpp @@ -336,6 +336,10 @@ void TransactionView::changedAmount(const QString &amount) void TransactionView::exportClicked() { + if (!model || !model->getOptionsModel()) { + return; + } + // CSV is currently the only supported format QString filename = GUIUtil::getSaveFileName(this, tr("Export Transaction History"), QString(), |