tracker r3101 - in trunk: . src/libtracker-data
- From: carlosg svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r3101 - in trunk: . src/libtracker-data
- Date: Tue, 17 Mar 2009 17:08:41 +0000 (UTC)
Author: carlosg
Date: Tue Mar 17 17:08:41 2009
New Revision: 3101
URL: http://svn.gnome.org/viewvc/tracker?rev=3101&view=rev
Log:
2009-03-17 Carlos Garnacho <carlos imendio com>
* src/libtracker-data/tracker-data-update.c
(tracker_data_update_delete_service_by_path): Fail gracefully if the
rdf type doesn't exist in the ontology.
Modified:
trunk/ChangeLog
trunk/src/libtracker-data/tracker-data-update.c
Modified: trunk/src/libtracker-data/tracker-data-update.c
==============================================================================
--- trunk/src/libtracker-data/tracker-data-update.c (original)
+++ trunk/src/libtracker-data/tracker-data-update.c Tue Mar 17 17:08:41 2009
@@ -539,6 +539,11 @@
return;
service = tracker_ontology_get_service_by_name (rdf_type);
+
+ if (!service) {
+ return;
+ }
+
service_type = tracker_service_get_name (service);
service_id = tracker_data_query_file_id (service_type, path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]