Merge branch '2309bug1' into 'yhkylin/v101'

fix bug 177717

See merge request kylinos-src/kylin-nm!193
This commit is contained in:
赵世旭 2023-06-26 08:14:39 +00:00
commit 77b3ea77c6
1 changed files with 1 additions and 1 deletions

View File

@ -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;