aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-account-widget.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2011-11-03 16:12:49 +0800
committerXavier Claessens <xclaesse@gmail.com>2011-11-04 17:10:19 +0800
commitbaeff8af237dd7c4a18d578ed71b3ee87ceb278d (patch)
tree727febac2770d62061c0d4478e648812c22e377e /libempathy-gtk/empathy-account-widget.c
parentb9aad8c8792dfb03975feaec31bdc90d5157a9d2 (diff)
downloadgsoc2013-empathy-baeff8af237dd7c4a18d578ed71b3ee87ceb278d.tar
gsoc2013-empathy-baeff8af237dd7c4a18d578ed71b3ee87ceb278d.tar.gz
gsoc2013-empathy-baeff8af237dd7c4a18d578ed71b3ee87ceb278d.tar.bz2
gsoc2013-empathy-baeff8af237dd7c4a18d578ed71b3ee87ceb278d.tar.lz
gsoc2013-empathy-baeff8af237dd7c4a18d578ed71b3ee87ceb278d.tar.xz
gsoc2013-empathy-baeff8af237dd7c4a18d578ed71b3ee87ceb278d.tar.zst
gsoc2013-empathy-baeff8af237dd7c4a18d578ed71b3ee87ceb278d.zip
Fix crash when opening GOA facebook account settings
In that case priv->jid_suffix is NULL, so we should not try to call remove_jid_suffix().
Diffstat (limited to 'libempathy-gtk/empathy-account-widget.c')
-rw-r--r--libempathy-gtk/empathy-account-widget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 8b693fa03..33082ba63 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -2477,7 +2477,7 @@ empathy_account_widget_get_default_display_name (EmpathyAccountWidget *self)
default_display_name = g_strdup_printf (_("%1$s on %2$s"),
login_id, empathy_irc_network_get_name (network));
}
- else if (service == FACEBOOK_SERVICE)
+ else if (service == FACEBOOK_SERVICE && priv->jid_suffix != NULL)
{
gchar *tmp;