From 5bde36479da79aa5267304c5a11252d815b61f33 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Fri, 11 Nov 2016 01:12:44 +0100 Subject: [PATCH] Assert in network context --- src/blackcore/context/contextnetworkimpl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/blackcore/context/contextnetworkimpl.cpp b/src/blackcore/context/contextnetworkimpl.cpp index 40ff1fcbb..f916b80cb 100644 --- a/src/blackcore/context/contextnetworkimpl.cpp +++ b/src/blackcore/context/contextnetworkimpl.cpp @@ -559,6 +559,7 @@ namespace BlackCore if (c) { CSimulatedAircraft aircraft(this->getAircraftInRangeForCallsign(callsign)); + Q_ASSERT_X(!aircraft.getCallsign().isEmpty(), Q_FUNC_INFO, "missing callsign"); emit this->changedRemoteAircraftEnabled(aircraft); } return c;