[anjal] Fix a crash during sort.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjal] Fix a crash during sort.
- Date: Thu, 19 Mar 2009 06:25:42 -0400 (EDT)
commit 45963aba2d039514f56fc76a487af615d223cb00
Author: Srinivasa Ragavan <sragavan novell com>
Date: Thu Mar 19 15:58:57 2009 +0530
Fix a crash during sort.
---
src/em-tree-store.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/em-tree-store.c b/src/em-tree-store.c
index 108e639..7669df5 100644
--- a/src/em-tree-store.c
+++ b/src/em-tree-store.c
@@ -315,10 +315,10 @@ emts_get_value(GtkTreeModel *tree_model, GtkTreeIter *iter, gint column, GValue
break;
}
case EMTS_COL_THREADPREVIEW:{
- EMTreeNode *lnode = g_hash_table_lookup(f->uid_table, node->latest_uid);
+ EMTreeNode *lnode = node->latest_uid ? g_hash_table_lookup(f->uid_table, node->latest_uid) : NULL;
char *preview = NULL;
char *str = NULL;
-
+ /* We don't bother to fetch the preview of latest message, if not idenfied. Its ok.*/
if (lnode && lnode->info)
preview = camel_message_info_preview (lnode->info);
if ((!preview || !*preview )&& node->info)
@@ -330,8 +330,7 @@ emts_get_value(GtkTreeModel *tree_model, GtkTreeIter *iter, gint column, GValue
break;
}
case EMTS_COL_FLAGS: {
- EMTreeNode *lnode = g_hash_table_lookup(f->uid_table, node->latest_uid);
- g_value_set_uint(value, (unsigned int)camel_message_info_flags(lnode->info));
+ g_value_set_uint(value, (unsigned int)camel_message_info_flags(node->info));
break;
}
case EMTS_COL_DATE: {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]