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:
Michael Terry 2012-04-11 16:01:32 -04:00 committed by luzp
parent 47e9ed46e6
commit 665afde7a8
1 changed files with 1 additions and 1 deletions

View File

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