aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-19 23:47:51 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-19 23:49:50 +0800
commit9ed93049d1bf4e130e8422100031ea76985b2de5 (patch)
tree6e45d51784dda8f7d003e834837b892dbea92fcb
parent748b51655622bb4955959c72f161cbf2a41aeced (diff)
downloadgsoc2013-evolution-9ed93049d1bf4e130e8422100031ea76985b2de5.tar.gz
gsoc2013-evolution-9ed93049d1bf4e130e8422100031ea76985b2de5.tar.zst
gsoc2013-evolution-9ed93049d1bf4e130e8422100031ea76985b2de5.zip
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.
-rw-r--r--mail/e-mail-label-list-store.c3
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 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);