[network-manager-applet/NMA_0_8] applet: quiet warning when IPv6 is not active on a device



commit 9813db9064cc10dbb8c8e317871146f99c5a2bb5
Author: Dan Williams <dcbw redhat com>
Date:   Thu Jan 6 17:02:31 2011 -0600

    applet: quiet warning when IPv6 is not active on a device

 src/applet-dialogs.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/applet-dialogs.c b/src/applet-dialogs.c
index 2f3250f..15960fb 100644
--- a/src/applet-dialogs.c
+++ b/src/applet-dialogs.c
@@ -549,9 +549,11 @@ info_dialog_add_page (GtkNotebook *notebook,
 	}
 
 	ip6_config = nm_device_get_ip6_config (device);
-	addresses = nm_ip6_config_get_addresses (ip6_config);
-	if (g_slist_length ((GSList *) addresses))
-		def6_addr = addresses->data;
+	if (ip6_config) {
+		addresses = nm_ip6_config_get_addresses (ip6_config);
+		if (g_slist_length ((GSList *) addresses))
+			def6_addr = addresses->data;
+	}
 
 	/* Address */
 	if (def6_addr) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]