diff options
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/message-list.c | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index cbed52727d..b8b5c98d3d 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2002-05-15 Jeffrey Stedfast <fejj@ximian.com> + + * message-list.c (ml_tree_value_at): Instead of g_assert()ing that + the msg_info is not NULL, if it is NULL just return NULL. This + fixes a crash when ETree requests the value at a root node (I + don't understand why it needs to do that??). + 2002-05-14 Jeffrey Stedfast <fejj@ximian.com> * folder-info.h: Added. diff --git a/mail/message-list.c b/mail/message-list.c index 79f24f14a8..480e9ceb89 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -819,7 +819,8 @@ ml_tree_value_at (ETreeModel *etm, ETreePath path, int col, void *model_data) /* retrieve the message information array */ msg_info = e_tree_memory_node_get_data (E_TREE_MEMORY(etm), path); - g_assert(msg_info); + if (!msg_info) + return NULL; switch (col){ case COL_MESSAGE_STATUS: { |