Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > ea0d03d353f3eaadd0f63b283361f850 > files > 3

kde-plasma-networkmanagement-0.9-0.40.20110323.fc13.1.src.rpm

diff -ur networkmanagement-0.9/applet/nmpopup.cpp networkmanagement-0.9-#710996/applet/nmpopup.cpp
--- networkmanagement-0.9/applet/nmpopup.cpp	2011-03-23 19:15:35.000000000 +0100
+++ networkmanagement-0.9-#710996/applet/nmpopup.cpp	2011-06-08 14:00:47.000000000 +0200
@@ -533,7 +533,7 @@
 
     foreach (InterfaceItem* ifaceitem, m_interfaces) {
         Solid::Control::NetworkInterface* iface = ifaceitem->interface();
-        if (iface->type() == Solid::Control::NetworkInterface::Ieee80211) {
+        if (iface && iface->type() == Solid::Control::NetworkInterface::Ieee80211) {
             //kDebug() << "there's a wifi iface" << ifaceitem->connectionName() << iface->interfaceName();
             m_hasWirelessInterface = true; // at least one interface is wireless. We're happy.
             m_wifiCheckBox->show();
@@ -554,8 +554,8 @@
     bool hasWwan = false;
     foreach (InterfaceItem* ifaceitem, m_interfaces) {
         Solid::Control::NetworkInterface* iface = ifaceitem->interface();
-        if (iface->type() == Solid::Control::NetworkInterface::Gsm ||
-            iface->type() == Solid::Control::NetworkInterface::Cdma) {
+        if (iface && (iface->type() == Solid::Control::NetworkInterface::Gsm ||
+                      iface->type() == Solid::Control::NetworkInterface::Cdma)) {
             hasWwan = true;
             break;
         }