Guarding by "hasWebDataServices"

This commit is contained in:
Klaus Basan
2020-02-15 20:36:50 +01:00
committed by Mat Sutcliffe
parent 70e08fdf8b
commit 14ab60cb73
5 changed files with 65 additions and 50 deletions

View File

@@ -1113,10 +1113,10 @@ namespace BlackCore
if (it != m_aliasedStations.end())
{
if (sApp->getIContextNetwork())
if (sApp && sApp->getIContextNetwork())
{
// Get the callsign for this frequency and fuzzy compare with our alias station
// !\todo KB 2019-10 replace by com unit channel spacing
// !\todo KB 2019-10 replace by COM unit channel spacing
const CComSystem::ChannelSpacing spacing = CComSystem::ChannelSpacing25KHz;
const CFrequency f(static_cast<int>(roundedFrequencyHz), CFrequencyUnit::Hz());
const CAtcStationList matchingAtcStations = sApp->getIContextNetwork()->getOnlineStationsForFrequency(f, spacing);