mirror of https://gitee.com/openkylin/gvfs.git
Don't crash when creating volume monitors
if the VFS was never initialized Origin: vendor, Ubuntu Bug-Ubuntu: LP #832533 Gbp-Pq: Name handle-inactive-vfs.patch
This commit is contained in:
parent
47e9ed46e6
commit
665afde7a8
|
@ -1434,7 +1434,7 @@ g_daemon_vfs_deserialize_icon (GVfs *vfs,
|
|||
GDBusConnection *
|
||||
_g_daemon_vfs_get_async_bus (void)
|
||||
{
|
||||
return the_vfs->async_bus;
|
||||
return the_vfs ? the_vfs->async_bus : NULL;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in New Issue