🔒 Repository is read-only – file editing is disabled.
12345678910111213141516171819202122232425
From: Michael Terry <mterry@ubuntu.com>
Date: Wed, 11 Apr 2012 16:01:32 -0400
Subject: Don't crash when creating volume monitors
if the VFS was never initialized
Origin: vendor, Ubuntu
Bug-Ubuntu: LP #832533
---
client/gdaemonvfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/gdaemonvfs.c b/client/gdaemonvfs.c
index bae13eb..e3fbd8a 100644
--- a/client/gdaemonvfs.c
+++ b/client/gdaemonvfs.c
@@ -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