tdehwlib: Prevent potential crash, when building without Network Manager support.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 2b3ea27bdf)
r14.0.x
Slávek Banko 3 years ago
parent 86a973eba2
commit fbc1804196
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1097,9 +1097,14 @@ TDENetworkWiFiAPInfo* TDEGlobalNetworkManager::findAccessPointByBSSID(TDEMACAddr
TDENetworkDevice* dev = dynamic_cast<TDENetworkDevice*>(*it);
if (dev) {
TDENetworkConnectionManager* deviceConnMan = dev->connectionManager();
TDENetworkWiFiAPInfo* candidate = deviceConnMan->findAccessPointByBSSID(bssid);
if (candidate) {
ret = candidate;
if (deviceConnMan)
{
TDENetworkWiFiAPInfo* candidate = deviceConnMan->findAccessPointByBSSID(bssid);
if (candidate)
{
ret = candidate;
break;
}
}
}
}

Loading…
Cancel
Save