aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-contact-widget.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 1bfb38749..5691891a2 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -1406,8 +1406,11 @@ contact_widget_contact_update (EmpathyContactWidget *information)
}
else
{
- empathy_avatar_chooser_set_account (
- EMPATHY_AVATAR_CHOOSER (information->widget_avatar), account);
+ if (EMPATHY_IS_AVATAR_CHOOSER (information->widget_avatar))
+ {
+ empathy_avatar_chooser_set_account (
+ EMPATHY_AVATAR_CHOOSER (information->widget_avatar), account);
+ }
if ((information->flags & EMPATHY_CONTACT_WIDGET_NO_ACCOUNT) == 0)
{