Index: mail/ChangeLog
===================================================================
--- mail/ChangeLog	(revision 33846)
+++ mail/ChangeLog	(working copy)
@@ -1,5 +1,12 @@
 2007-07-26  Milan Crha  <mcrha@redhat.com>
 
+	** Fix for bug #303937
+
+	* message-list.c: (ml_tree_drag_data_received):
+	Don't do anything when ml->folder is NULL.
+
+2007-07-26  Milan Crha  <mcrha@redhat.com>
+
 	** Fix for bug #273386
 
 	* em-format-html.c: (efh_format_timeout):
Index: mail/message-list.c
===================================================================
--- mail/message-list.c	(revision 33846)
+++ mail/message-list.c	(working copy)
@@ -1982,7 +1982,7 @@
 	struct _drop_msg *m;
 
 	/* this means we are receiving no data */
-	if (data->data == NULL || data->length == -1)
+	if (!ml->folder || data->data == NULL || data->length == -1)
 		return;
 
 	m = mail_msg_new(&ml_drop_async_op, NULL, sizeof(*m));
