diff options
-rw-r--r-- | 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 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); |