aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2008-07-31 12:19:28 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2008-07-31 12:19:28 +0800
commite202e2f07ff9359e70f8c35d44160ff7ddd49a8b (patch)
tree273458f5d8d506519618341c1df776e837ffe566
parent628f227cd1b69fea40cefaee0ea00aba3c9729a9 (diff)
downloadgsoc2013-evolution-e202e2f07ff9359e70f8c35d44160ff7ddd49a8b.tar
gsoc2013-evolution-e202e2f07ff9359e70f8c35d44160ff7ddd49a8b.tar.gz
gsoc2013-evolution-e202e2f07ff9359e70f8c35d44160ff7ddd49a8b.tar.bz2
gsoc2013-evolution-e202e2f07ff9359e70f8c35d44160ff7ddd49a8b.tar.lz
gsoc2013-evolution-e202e2f07ff9359e70f8c35d44160ff7ddd49a8b.tar.xz
gsoc2013-evolution-e202e2f07ff9359e70f8c35d44160ff7ddd49a8b.tar.zst
gsoc2013-evolution-e202e2f07ff9359e70f8c35d44160ff7ddd49a8b.zip
** Fix for bug #545436
2008-07-31 Srinivasa Ragavan <sragavan@novell.com> ** Fix for bug #545436 * mail/message-list.c: Check the info before accessing it. svn path=/trunk/; revision=35870
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/message-list.c6
2 files changed, 9 insertions, 3 deletions
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 <sragavan@novell.com>
+
+ ** Fix for bug #545436
+
+ * mail/message-list.c: Check the info before accessing it.
+
2008-07-30 Milan Crha <mcrha@redhat.com>
** 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 --;
}