gio: Handle NULL cached properties in NetworkManager monitor
commitca0632ca5cceb8cebfbb7a57725577034348f7b7
authorPhilip Withnall <philip@tecnocode.co.uk>
Sun, 7 Dec 2014 22:41:57 +0000 (7 22:41 +0000)
committerPhilip Withnall <withnall@endlessm.com>
Mon, 3 Apr 2017 11:04:23 +0000 (3 12:04 +0100)
tree82a7919b0e5eb17b862f65bf94c7974a16d6fb97
parent1f396fd7d6a88e0a45985828a57d1b1654ab1d47
gio: Handle NULL cached properties in NetworkManager monitor

g_dbus_proxy_get_cached_property() and
g_dbus_proxy_get_cached_property_names() can both return NULL if the
property cache is empty. Avoid a crash if this situation arises (which
it looks like it could, from reading the code) by gracefully bailing out
on NULL return values.

Coverity issues: #1257044, #1257045

https://bugzilla.gnome.org/show_bug.cgi?id=741229
gio/gnetworkmonitornm.c