diff options
-rw-r--r-- | mail/em-utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c index 0b65b635e1..749d3d12fe 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -952,6 +952,12 @@ em_utils_selection_set_urilist (GtkSelectionData *data, gchar *save_file_format; gboolean save_as_mbox; + g_return_if_fail (uids != NULL); + + /* can be 0 with empty folders */ + if (!uids->len) + return; + tmpdir = e_mkdtemp ("drag-n-drop-XXXXXX"); if (tmpdir == NULL) return; |