Commit ee5e3e54 authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Carlos Garnacho

Check that there's actually a current item before checking whether it's

2009-04-01  Carlos Garnacho  <carlos@imendio.com>

        * src/tracker-indexer/tracker-indexer.c (mount_pre_unmount_cb): Check
        that there's actually a current item before checking whether it's
        inside the mount.

svn path=/trunk/; revision=3159
parent 9aa5141e
2009-04-01 Carlos Garnacho <carlos@imendio.com>
* src/tracker-indexer/tracker-indexer.c (mount_pre_unmount_cb): Check
that there's actually a current item before checking whether it's
inside the mount.
2009-03-31 Carlos Garnacho <carlos@imendio.com>
* src/tracker-indexer/tracker-module-metadata-utils.c
......
......@@ -578,7 +578,8 @@ mount_pre_unmount_cb (GVolumeMonitor *volume_monitor,
/* Now cancel current element if it's also in the mount */
current_info = g_queue_peek_head (indexer->private->file_queue);
if (g_file_has_prefix (current_info->file, mount_root)) {
if (current_info &&
g_file_has_prefix (current_info->file, mount_root)) {
tracker_module_file_cancel (current_info->module_file);
}
......
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