Skip to content

Commit 4c72cc3

Browse files
committed
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
2 parents 080ec52 + fd9599b commit 4c72cc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/qt/transactionview.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,10 @@ void TransactionView::changedAmount(const QString &amount)
336336

337337
void TransactionView::exportClicked()
338338
{
339+
if (!model || !model->getOptionsModel()) {
340+
return;
341+
}
342+
339343
// CSV is currently the only supported format
340344
QString filename = GUIUtil::getSaveFileName(this,
341345
tr("Export Transaction History"), QString(),

0 commit comments

Comments
 (0)