[balsa] Check for NULL mblist_tree_store



commit 60a813893e94e3b8ca618115ff5ee2f1f29a5236
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Mon Jan 18 20:19:02 2010 -0500

    Check for NULL mblist_tree_store
    
    	* src/balsa-app.c (balsa_find_url): check for NULL
    	mblist_tree_store.

 ChangeLog       |    5 +++++
 src/balsa-app.c |    5 +++--
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index edf4bb7..8f8d0e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-01-18  Peter Bloomfield
 
+	* src/balsa-app.c (balsa_find_url): check for NULL
+	mblist_tree_store.
+
+2010-01-18  Peter Bloomfield
+
 	* libbalsa/information.c (lbi_notification_parent_weak_notify),
 	(lbi_notification_closed_cb), (libbalsa_information_varg): close
 	notification bubble with parent.
diff --git a/src/balsa-app.c b/src/balsa-app.c
index 4c1c902..91b35fe 100644
--- a/src/balsa-app.c
+++ b/src/balsa-app.c
@@ -732,8 +732,9 @@ balsa_find_url(const gchar * url)
 
     bf.data = url;
     bf.mbnode = NULL;
-    gtk_tree_model_foreach(GTK_TREE_MODEL(balsa_app.mblist_tree_store),
-			   (GtkTreeModelForeachFunc) find_url, &bf);
+    if (balsa_app.mblist_tree_store)
+        gtk_tree_model_foreach(GTK_TREE_MODEL(balsa_app.mblist_tree_store),
+                               (GtkTreeModelForeachFunc) find_url, &bf);
     if (is_sub_thread)
 	gdk_threads_leave();
 



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