[empathy] Fix a warning if McAccount has no TpConnection



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]