Skip to content

Commit fd9599b

Browse files
[qt] Avoid potential null pointer dereference in TransactionView::exportClicked()
1 parent 234ffc6 commit fd9599b

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)