Skip to content

Commit

Permalink
Merge #10673: [qt] Avoid potential null pointer dereference in Transa…
Browse files Browse the repository at this point in the history
…ctionView::exportClicked()

fd9599b [qt] Avoid potential null pointer dereference in TransactionView::exportClicked() (practicalswift)

Tree-SHA512: 33cbb65bd86aceb58918eb0a19e1727599a22285e7c89d4e7d3b2639c879dc8939708fd506006c6c092f624050d1131f997cc37f837cb980aa440f8abe5a3c18
  • Loading branch information
laanwj committed Jun 29, 2017
2 parents 080ec52 + fd9599b commit 4c72cc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qt/transactionview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 4c72cc3

Please sign in to comment.