aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-contact-widget.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 81b8fb096..2e591ece3 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -438,6 +438,10 @@ popup_avatar_menu (EmpathyContactWidget *information,
GtkWidget *menu, *item;
gint button, event_time;
+ if (information->contact == NULL ||
+ empathy_contact_get_avatar (information->contact) == NULL)
+ return;
+
menu = gtk_menu_new ();
/* Add "Save as..." entry */