diff options
Diffstat (limited to 'panels/network/net-device-mobile.c')
-rw-r--r-- | panels/network/net-device-mobile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/panels/network/net-device-mobile.c b/panels/network/net-device-mobile.c index aafdc79e7..8e59cc9dd 100644 --- a/panels/network/net-device-mobile.c +++ b/panels/network/net-device-mobile.c @@ -469,7 +469,7 @@ device_off_toggled (GtkSwitch *sw, path = nm_connection_get_path (connection); client = net_object_get_client (NET_OBJECT (device_mobile)); acs = nm_client_get_active_connections (client); - for (i = 0; i < acs->len; i++) { + for (i = 0; acs && i < acs->len; i++) { a = (NMActiveConnection*)acs->pdata[i]; if (strcmp (nm_active_connection_get_connection (a), path) == 0) { nm_client_deactivate_connection (client, a); |