From a4a1a93648db15b869ee67a19b7aad1873b5f9c7 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 7 Jul 2000 16:13:37 +0000 Subject: Handle a row number of -1 properly. 2000-07-07 Christopher James Lahey * message-list.c (get_message_info): Handle a row number of -1 properly. svn path=/trunk/; revision=3947 --- mail/ChangeLog | 5 +++++ mail/message-list.c | 3 +++ 2 files changed, 8 insertions(+) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 8ba42c5252..441d3f617a 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2000-07-07 Christopher James Lahey + + * message-list.c (get_message_info): Handle a row number of -1 + properly. + 2000-07-06 Dan Winship * message-list.c (get_message_info): Map tree model row numbers to diff --git a/mail/message-list.c b/mail/message-list.c index edb919ad4f..0ebf492872 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -103,6 +103,9 @@ get_message_info(MessageList *message_list, gint row) node = e_tree_model_node_at_row (model, row); row = GPOINTER_TO_INT (e_tree_model_node_get_data (model, node)); + if (row == -1) + return NULL; + info = message_list->summary_table->pdata[row]; } -- cgit