From 102a0d51a09927c84034f8f587210ac7afa30139 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Thu, 23 Mar 2017 03:17:51 +0100 Subject: [PATCH] Added BLACK_VERIFY --- src/blackgui/components/datamaininfoareacomponent.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/blackgui/components/datamaininfoareacomponent.cpp b/src/blackgui/components/datamaininfoareacomponent.cpp index 16d94063c..377c3041f 100644 --- a/src/blackgui/components/datamaininfoareacomponent.cpp +++ b/src/blackgui/components/datamaininfoareacomponent.cpp @@ -15,8 +15,8 @@ #include "blackgui/components/dbmodelcomponent.h" #include "blackgui/components/logcomponent.h" #include "blackmisc/icons.h" +#include "blackmisc/verify.h" #include "ui_datamaininfoareacomponent.h" - #include using namespace BlackMisc; @@ -66,12 +66,16 @@ namespace BlackGui void CDataMainInfoAreaComponent::displayLog() { this->selectArea(InfoAreaLog); + BLACK_VERIFY_X(this->getLogComponent(), Q_FUNC_INFO, "No log component"); + if (!this->getLogComponent()) { return; } this->getLogComponent()->displayLog(); } void CDataMainInfoAreaComponent::displayConsole() { this->selectArea(InfoAreaLog); + BLACK_VERIFY_X(this->getLogComponent(), Q_FUNC_INFO, "No log component"); + if (!this->getLogComponent()) { return; } this->getLogComponent()->displayConsole(); }