Commit 82a2d53e authored by Alexandru Pandelea's avatar Alexandru Pandelea

files-view: fix crash on enter in search

Pressing enter with no selection while in search makes Nautilus
crash.

The problem is that Nautilus will try to access the first element
of a list that is NULL.

To avoid this, make sure that the list is not NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=777214
parent 1d0d8e7c
......@@ -1136,6 +1136,11 @@ nautilus_files_view_activate_files (NautilusFilesView *view,
GList *files_to_activate;
char *path;
if (files == NULL)
{
return;
}
files_to_extract = nautilus_file_list_filter (files,
&files_to_activate,
(NautilusFileFilterFunc) nautilus_mime_file_extracts,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment