Fix erroneous use of a potentially NULL pointer.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5604 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2015-06-13 12:08:32 +00:00
parent 9950295679
commit 2b671dbd2e

View File

@ -1542,7 +1542,9 @@ void MainWindow::freezeDecode(int n) //freezeDecode()
void MainWindow::on_ClrAvgButton_clicked() void MainWindow::on_ClrAvgButton_clicked()
{ {
m_nclearave=1; m_nclearave=1;
if(m_msgAvgWidget->isVisible()) m_msgAvgWidget->displayAvg(""); if(m_msgAvgWidget != NULL) {
if(m_msgAvgWidget->isVisible()) m_msgAvgWidget->displayAvg("");
}
} }
void MainWindow::msgAvgDecode2() void MainWindow::msgAvgDecode2()