From 1293953a11f54e41fe25b01c3ef6cb6737efed28 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 18 Dec 2017 03:06:45 +0100 Subject: [PATCH] Check if services are available --- src/blackgui/components/infobarwebreadersstatuscomponent.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/blackgui/components/infobarwebreadersstatuscomponent.cpp b/src/blackgui/components/infobarwebreadersstatuscomponent.cpp index af6f5c08e..8bb07c370 100644 --- a/src/blackgui/components/infobarwebreadersstatuscomponent.cpp +++ b/src/blackgui/components/infobarwebreadersstatuscomponent.cpp @@ -154,6 +154,7 @@ namespace BlackGui bool CInfoBarWebReadersStatusBase::hasAllData() const { if (!sGui) { return false; } + if (!sGui->hasWebDataServices()) { return false; } return sGui->getWebDataServices()->getAirlineIcaoCodesCount() > 0 && sGui->getWebDataServices()->getAircraftIcaoCodesCount() > 0 && sGui->getWebDataServices()->getDistributorsCount() > 0 &&