diff --git a/debian/changelog b/debian/changelog index 35a037ba..dec4e344 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +kylin-nm (3.20.1.6-ok7) v101; urgency=medium + + * BUG号:无 + * 需求号:无 + * 其他改动:解决平板设备因插拔有线网卡造成的奔溃问题 + * 影响域:VPN托盘区造成的崩溃问题 + + -- chenxuechao Fri, 21 Oct 2022 15:17:54 +0800 + kylin-nm (3.20.1.6-ok6) v101; urgency=medium * BUG号: diff --git a/src/backend/dbus-interface/kylinconnectresource.cpp b/src/backend/dbus-interface/kylinconnectresource.cpp index 7512bf84..c95fa223 100644 --- a/src/backend/dbus-interface/kylinconnectresource.cpp +++ b/src/backend/dbus-interface/kylinconnectresource.cpp @@ -232,8 +232,10 @@ void KyConnectResourse::getVpnAndVirtualConnections(QList &conn } NetworkManager::Device::Ptr devicePtr = nullptr; devicePtr = m_networkResourceInstance->findDeviceInterface(connectPtr->settings()->interfaceName()); - if (NetworkManager::ConnectionSettings::ConnectionType::Wired == connectPtr->settings()->connectionType() && !devicePtr->udi().startsWith("/sys/devices/virtual/net")) { - continue; + if (NetworkManager::ConnectionSettings::ConnectionType::Wired == connectPtr->settings()->connectionType()) { + if (devicePtr == nullptr || !devicePtr->udi().startsWith("/sys/devices/virtual/net")) { + continue; + } } QString devName = ""; if (!devicePtr.isNull()) {