From 5e8e81e2cfe74f94eff8b42c8eeac4ec997bd541 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 12 Jan 2016 17:58:18 +0100 Subject: [PATCH] ip4-config: be a bit more tolerant when dumping the connection This one single commit magically turns a nightmare into a summer breeze. --- src/nm-ip4-config.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/nm-ip4-config.c b/src/nm-ip4-config.c index 81955fa6b4..a90bd218a5 100644 --- a/src/nm-ip4-config.c +++ b/src/nm-ip4-config.c @@ -1202,10 +1202,13 @@ nm_ip4_config_dump (const NMIP4Config *config, const char *detail) guint32 i, tmp; const char *str; - g_return_if_fail (config != NULL); - g_message ("--------- NMIP4Config %p (%s)", config, detail); + if (config == NULL) { + g_message (" (null)"); + return; + } + str = nm_exported_object_get_path (NM_EXPORTED_OBJECT (config)); if (str) g_message (" path: %s", str);