From fd9599b1358a314b073a9ca0a68ca8037915d91d Mon Sep 17 00:00:00 2001 From: practicalswift Date: Mon, 26 Jun 2017 22:02:51 +0200 Subject: [PATCH] [qt] Avoid potential null pointer dereference in TransactionView::exportClicked() --- src/qt/transactionview.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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(),