placessidebar: do not crash if uris is NULL

On Drag'n'Drop actions across system boundaries (VM host to guest), the
happen to be null.

https://bugzilla.gnome.org/show_bug.cgi?id=757298
This commit is contained in:
Dominique Leuenberger 2015-10-29 13:56:18 +01:00
parent fc6f41c751
commit 4f24c8569c

View File

@ -1708,7 +1708,7 @@ build_file_list_from_uris (const gchar **uris)
gint i;
result = NULL;
for (i = 0; uris[i]; i++)
for (i = 0; uris && uris[i]; i++)
{
GFile *file;