[empathy] Don't try to update EmpathyIndividualWidget's location without an Individual



commit 569e01b98e70c3a51eeb8f8eb8dc3871f871c62d
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Thu Sep 2 16:42:58 2010 +0100

    Don't try to update EmpathyIndividualWidget's location without an Individual

 libempathy-gtk/empathy-individual-widget.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index b688306..08a18d5 100644
--- a/libempathy-gtk/empathy-individual-widget.c
+++ b/libempathy-gtk/empathy-individual-widget.c
@@ -530,7 +530,8 @@ location_update (EmpathyIndividualWidget *self)
   gboolean display_map = FALSE;
   GList *personas, *l;
 
-  if (!(priv->flags & EMPATHY_INDIVIDUAL_WIDGET_SHOW_LOCATION))
+  if (!(priv->flags & EMPATHY_INDIVIDUAL_WIDGET_SHOW_LOCATION) ||
+      priv->individual == NULL)
     {
       gtk_widget_hide (priv->vbox_location);
       return;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]