Index: gtktreeview.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtktreeview.c,v
retrieving revision 1.137
diff -u -p -r1.137 gtktreeview.c
--- gtktreeview.c	2001/09/08 05:50:43	1.137
+++ gtktreeview.c	2001/09/09 05:08:15
@@ -5308,6 +5308,9 @@ gtk_tree_view_unref_and_check_selection_
   GtkRBNode *node;
   gint retval;
 
+  if (!tree)
+    return FALSE;
+
   node = tree->root;
   while (node && node->left != tree->nil)
     node = node->left;
