[tracker] Bugfix, the value can be NULL here, and should then be ignored



commit 46fe6c5db9ed24b25a23497514d00cd035b19256
Author: Philip Van Hoof <philip codeminded be>
Date:   Tue Sep 1 11:53:17 2009 +0200

    Bugfix, the value can be NULL here, and should then be ignored

 src/libtracker-data/tracker-data-update.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 932a0bd..a96e03b 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -1693,10 +1693,12 @@ tracker_data_delete_resource_description (const gchar *uri)
 
 					value = tracker_db_cursor_get_string (single_cursor, i++);
 
-					tracker_data_delete_statement (uri, 
-					                               tracker_property_get_uri (*property), 
-					                               value, 
-					                               NULL);
+					if (value) {
+						tracker_data_delete_statement (uri, 
+						                               tracker_property_get_uri (*property), 
+						                               value, 
+						                               NULL);
+					}
 
 				} else {
 					/* multi value property, retrieve values from DB */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]