diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-06-26 22:02:51 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-06-27 15:06:39 +0200 |
commit | fd9599b1358a314b073a9ca0a68ca8037915d91d (patch) | |
tree | 3264ca782b36e1d5513113145b20663aebd82320 | |
parent | 234ffc677ee58591b139695bf92bbd6f504ee91a (diff) |
[qt] Avoid potential null pointer dereference in TransactionView::exportClicked()
-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(), |