From 23583a50aa0dfe8e9a75bb3ed4f7d0132958ee8b Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 17 Sep 2001 21:02:30 +0000 Subject: Do nothing if the selection is NULL? Maybe this is the cause of bug #6817. 2001-09-17 Jeffrey Stedfast * mail-display.c (invisible_selection_get_callback): Do nothing if the selection is NULL? Maybe this is the cause of bug #6817. svn path=/trunk/; revision=12910 --- mail/mail-display.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mail/mail-display.c') diff --git a/mail/mail-display.c b/mail/mail-display.c index 99e5710e57..ed51c52bad 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -1413,7 +1413,10 @@ invisible_selection_get_callback (GtkWidget *widget, MailDisplay *display; display = MAIL_DISPLAY (data); - + + if (!display->selection) + return; + g_assert (info == 1); gtk_selection_data_set (selection_data, GDK_SELECTION_TYPE_STRING, 8, -- cgit v1.2.3