diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2014-04-22 09:44:55 +0200 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2014-04-28 09:03:27 +0200 |
commit | 3b7c84a9b142ec30142529a9521f985588aea255 (patch) | |
tree | 6f666907e700070fac68fb6383810970cd61ad69 | |
parent | 0fd8afcf3c2cf1675cddb4edbc73943b8234105f (diff) | |
download | network-manager-applet-3b7c84a9b142ec30142529a9521f985588aea255.tar.gz |
broadband: fix crash when ModemManager is not available (rh #1089765)
https://bugzilla.redhat.com/show_bug.cgi?id=1089765
-rw-r--r-- | src/applet-device-broadband.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/applet-device-broadband.c b/src/applet-device-broadband.c index 4e9f2057..2300c0de 100644 --- a/src/applet-device-broadband.c +++ b/src/applet-device-broadband.c @@ -625,6 +625,11 @@ get_icon (NMDevice *device, { BroadbandDeviceInfo *info; + if (!applet->mm1) { + g_warning ("ModemManager is not available for modem at %s", nm_device_get_udi (device)); + return NULL; + } + info = g_object_get_data (G_OBJECT (device), "devinfo"); g_assert (info); |