From e202e2f07ff9359e70f8c35d44160ff7ddd49a8b Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Thu, 31 Jul 2008 04:19:28 +0000 Subject: ** Fix for bug #545436 2008-07-31 Srinivasa Ragavan ** Fix for bug #545436 * mail/message-list.c: Check the info before accessing it. svn path=/trunk/; revision=35870 --- mail/ChangeLog | 6 ++++++ mail/message-list.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 8813eef2fb..7688df9ff6 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2008-07-31 Srinivasa Ragavan + + ** Fix for bug #545436 + + * mail/message-list.c: Check the info before accessing it. + 2008-07-30 Milan Crha ** Part of fix for bug #500389 diff --git a/mail/message-list.c b/mail/message-list.c index 8c62fc4244..6467f73d7a 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -2590,7 +2590,7 @@ find_next_selectable (MessageList *ml) return NULL; info = get_message_info (ml, node); - if (is_node_selectable (ml, info)) + if (info && is_node_selectable (ml, info)) return NULL; last = e_tree_row_count (ml->tree); @@ -2604,7 +2604,7 @@ find_next_selectable (MessageList *ml) while (vrow < last) { node = e_tree_node_at_row (et, vrow); info = get_message_info (ml, node); - if (is_node_selectable (ml, info)) + if (info && is_node_selectable (ml, info)) return g_strdup (camel_message_info_uid (info)); vrow ++; } @@ -2616,7 +2616,7 @@ find_next_selectable (MessageList *ml) while (vrow >= 0) { node = e_tree_node_at_row (et, vrow); info = get_message_info (ml, node); - if (is_node_selectable (ml, info)) + if (info && is_node_selectable (ml, info)) return g_strdup (camel_message_info_uid (info)); vrow --; } -- cgit