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.
This commit is contained in:
Matthew Barnes
2009-09-19 11:47:51 -04:00
parent 748b516556
commit 9ed93049d1

View File

@ -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);