mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 05:10:17 +01:00
libnm-glib: warn early if an object is tried to be instantiated without a path
This commit is contained in:
parent
87b88fd38c
commit
dd175e3bf7
1 changed files with 2 additions and 2 deletions
|
|
@ -79,8 +79,6 @@ constructor (GType type,
|
|||
if (!object)
|
||||
return NULL;
|
||||
|
||||
_nm_object_cache_add (NM_OBJECT (object));
|
||||
|
||||
priv = NM_OBJECT_GET_PRIVATE (object);
|
||||
|
||||
if (priv->connection == NULL || priv->path == NULL) {
|
||||
|
|
@ -94,6 +92,8 @@ constructor (GType type,
|
|||
priv->path,
|
||||
"org.freedesktop.DBus.Properties");
|
||||
|
||||
_nm_object_cache_add (NM_OBJECT (object));
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue