Skip to content

Commit 594b52c

Browse files
author
Alexander Bychuk
committed
fix : check nullpointer
1 parent 08263b6 commit 594b52c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

finfdialog.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ FinfDialog::~FinfDialog() { delete ui; }
1717
void FinfDialog::on_findButton_clicked() {
1818
if (!ui->findLineEdit->text().isEmpty()) {
1919
MainWindow *mw = dynamic_cast<MainWindow *>(parentWidget());
20-
mw->fillExportTable(ui->findLineEdit->text());
20+
if (mw) {
21+
mw->fillExportTable(ui->findLineEdit->text());
22+
}
2123
close();
2224
}
2325
}

0 commit comments

Comments
 (0)