GNOME Bugzilla – Bug 752544
libtracker-common: String to date conversion to return with GError when null string
Last modified: 2015-08-03 12:09:02 UTC
When a null string is passed to the "tracker_string_to_date" function, we can see this kind of output in the stderr: tracker-miner-fs[2622]: GLIB CRITICAL ** Tracker - tracker_string_to_date: assertion 'date_string' failed It would be better to return in a nicer way and with further information in the passed GError.
Created attachment 307646 [details] [review] libtracker-common: String to date conversion to return with GError when null string Previously we were failing with a GLIB CRITICAL. Now, return gentlier and with a filled GError.
Review of attachment 307646 [details] [review]: Looks good to me, apart from the fact that the commit message should not be wider than 72 characters per line. I am not a tracker maintainer, so I can't give you the final stamp of approval.
Review of attachment 307646 [details] [review]: Good patch, thanks Andres, please commit! :)
Attachment 307646 [details] pushed as b97e8db - libtracker-common: String to date conversion to return with GError when null string
(In reply to Martyn Russell from comment #3) > Review of attachment 307646 [details] [review] [review]: > > Good patch, thanks Andres, please commit! :) Thanks for the review!