aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-04-08 05:44:18 +0800
committerPierre-Luc Beaudoin <pierre-luc.beaudoin@collabora.co.uk>2009-06-01 23:35:31 +0800
commit8a4e3bef97f66bc40f9c4fb24158f0bd0226ac55 (patch)
tree6eea76829a1b2ec274894bbdccbd2d8fd2f04bd5 /libempathy-gtk
parentd03890164e921182268c5f34aeb44b93a51b35c6 (diff)
downloadgsoc2013-empathy-8a4e3bef97f66bc40f9c4fb24158f0bd0226ac55.tar
gsoc2013-empathy-8a4e3bef97f66bc40f9c4fb24158f0bd0226ac55.tar.gz
gsoc2013-empathy-8a4e3bef97f66bc40f9c4fb24158f0bd0226ac55.tar.bz2
gsoc2013-empathy-8a4e3bef97f66bc40f9c4fb24158f0bd0226ac55.tar.lz
gsoc2013-empathy-8a4e3bef97f66bc40f9c4fb24158f0bd0226ac55.tar.xz
gsoc2013-empathy-8a4e3bef97f66bc40f9c4fb24158f0bd0226ac55.tar.zst
gsoc2013-empathy-8a4e3bef97f66bc40f9c4fb24158f0bd0226ac55.zip
Fix a warning if McAccount has no TpConnection
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-location-manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c
index 987574b45..9da3964ec 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)