[empathy] added check for null before scroll to cell



commit 8b6f735f75f51774bce12eb64ad1ed4712289bbb
Author: Felix Kaser <f kaser gmx net>
Date:   Wed Jul 28 17:49:44 2010 +0200

    added check for null before scroll to cell

 libempathy-gtk/empathy-individual-view.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c
index 82d1562..d847ee5 100644
--- a/libempathy-gtk/empathy-individual-view.c
+++ b/libempathy-gtk/empathy-individual-view.c
@@ -1363,8 +1363,11 @@ individual_view_search_hide_cb (EmpathyLiveSearch *search,
 
   /* keep the selected contact visible */
   gtk_tree_view_get_cursor (GTK_TREE_VIEW (view), &cursor_path, NULL);
-  gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (view), cursor_path, NULL,
-      FALSE, 0, 0);
+
+  if (cursor_path != NULL)
+    gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (view), cursor_path, NULL,
+        FALSE, 0, 0);
+
   gtk_tree_path_free (cursor_path);
 }
 



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