libnm-core: don't assert in nm_connection_get_uuid() for valid connection

We want to call nm_connection_get_uuid() also on connections that don't verify.
Otherwise it is chumbersome to check first for verified connection.

(cherry picked from commit 61eed191a9)
This commit is contained in:
Thomas Haller 2015-07-03 12:11:57 +02:00
parent 494b52a832
commit e125603450

View file

@ -1498,7 +1498,8 @@ nm_connection_get_uuid (NMConnection *connection)
g_return_val_if_fail (NM_IS_CONNECTION (connection), NULL);
s_con = nm_connection_get_setting_connection (connection);
g_return_val_if_fail (s_con != NULL, NULL);
if (!s_con)
return NULL;
return nm_setting_connection_get_uuid (s_con);
}