From 9ed93049d1bf4e130e8422100031ea76985b2de5 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 19 Sep 2009 11:47:51 -0400 Subject: 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 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mail/e-mail-label-list-store.c b/mail/e-mail-label-list-store.c index 1cbe927cb6..c1ca4d82af 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); -- cgit v1.2.3