Merge branch '2309bug1' into 'yhkylin/v101'
fix bug 177717 See merge request kylinos-src/kylin-nm!193
This commit is contained in:
commit
77b3ea77c6
|
@ -256,7 +256,7 @@ void KyNetworkDeviceResourse::getDeviceConnectivity(const QString &deviceName, N
|
|||
QString dbusPath;
|
||||
NetworkManager::Device::Ptr connectDevice =
|
||||
m_networkResourceInstance->findDeviceInterface(deviceName);
|
||||
if (connectDevice->isValid()) {
|
||||
if (connectDevice != nullptr && connectDevice->isValid()) {
|
||||
dbusPath = connectDevice->uni();
|
||||
} else {
|
||||
qWarning() << "[KyNetworkDeviceResourse] can not find device " << deviceName;
|
||||
|
|
Loading…
Reference in New Issue