[empathy] Fix a warning if McAccount has no TpConnection
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Fix a warning if McAccount has no TpConnection
- Date: Mon, 1 Jun 2009 11:45:19 -0400 (EDT)
commit 8a4e3bef97f66bc40f9c4fb24158f0bd0226ac55
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date: Tue Apr 7 17:44:18 2009 -0400
Fix a warning if McAccount has no TpConnection
---
libempathy-gtk/empathy-location-manager.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c
index 987574b..9da3964 100644
--- a/libempathy-gtk/empathy-location-manager.c
+++ b/libempathy-gtk/empathy-location-manager.c
@@ -122,6 +122,9 @@ publish_location (EmpathyLocationManager *location_manager,
priv = GET_PRIV (location_manager);
conn = mission_control_get_tpconnection (priv->mc, account, NULL);
+ if (!conn)
+ return;
+
factory = empathy_tp_contact_factory_dup_singleton (conn);
if (force_publication == FALSE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]