[evolution] Bug 595668 - Crash on startup



commit 9ed93049d1bf4e130e8422100031ea76985b2de5
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Sep 19 11:47:51 2009 -0400

    Bug 595668 - Crash on startup
    
    This is a partial solution to avoid the crash.  Still don't understand
    why e_mail_label_list_store_get_tag() is returning NULL.

 mail/e-mail-label-list-store.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/mail/e-mail-label-list-store.c b/mail/e-mail-label-list-store.c
index 1cbe927..c1ca4d8 100644
--- a/mail/e-mail-label-list-store.c
+++ b/mail/e-mail-label-list-store.c
@@ -197,10 +197,11 @@ mail_label_list_store_row_inserted (GtkTreeModel *model,
 	gchar *tag;
 
 	store = E_MAIL_LABEL_LIST_STORE (model);
+	tag = e_mail_label_list_store_get_tag (store, iter);
+	g_return_if_fail (tag != NULL);
 
 	/* Hash table takes ownership of both tag and reference. */
 	tag_index = store->priv->tag_index;
-	tag = e_mail_label_list_store_get_tag (store, iter);
 	reference = gtk_tree_row_reference_new (model, path);
 	g_hash_table_insert (tag_index, tag, reference);
 



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