searchenginetracker: Ignore NULL directories

This commit is contained in:
Benjamin Otte 2015-08-01 05:49:54 +02:00
parent 93171cf4f3
commit 186e94bafb

View File

@ -536,6 +536,9 @@ get_indexed_locations (GtkSearchEngineTracker *engine)
for (i = 0; locations[i] != NULL; i++)
{
path = path_from_tracker_dir (locations[i]);
if (path == NULL)
continue;
location = g_file_new_for_path (path);
g_ptr_array_add (engine->indexed_locations, location);
}