ip4-config: be a bit more tolerant when dumping the connection

This one single commit magically turns a nightmare into a summer breeze.
This commit is contained in:
Lubomir Rintel 2016-01-12 17:58:18 +01:00
parent 466a081c0f
commit 5e8e81e2cf

View file

@ -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);