From: <dg...@su...> - 2009-01-16 15:08:50
|
Author: savago Date: Fri Jan 16 16:07:58 2009 New Revision: 5171 URL: http://www.opensync.org/changeset/5171 Log: Testing for existence of anchor object. Modified: plugins/google-calendar/src/gcalendar.c Modified: plugins/google-calendar/src/gcalendar.c ============================================================================== --- plugins/google-calendar/src/gcalendar.c Fri Jan 16 15:56:12 2009 (r5170) +++ plugins/google-calendar/src/gcalendar.c Fri Jan 16 16:07:58 2009 (r5171) @@ -217,6 +217,7 @@ if (!plgdata->gcal_sink) return; + osync_assert(plgdata->gcalendar_anchor); timestamp = osync_anchor_retrieve(plgdata->gcalendar_anchor, &anchor_error); if (timestamp) osync_trace(TRACE_INTERNAL, "timestamp is: %s\n", timestamp); @@ -366,6 +367,7 @@ if (!plgdata->gcont_sink) return; + osync_assert(plgdata->gcontact_anchor); timestamp = osync_anchor_retrieve(plgdata->gcontact_anchor, &anchor_error); if (timestamp) osync_trace(TRACE_INTERNAL, "timestamp is: %s\n", timestamp); @@ -735,11 +737,13 @@ if (plgdata->calendar && plgdata->cal_timestamp) { osync_trace(TRACE_INTERNAL, "query updated timestamp: %s\n", plgdata->cal_timestamp); + osync_assert(plgdata->gcalendar_anchor); osync_anchor_update(plgdata->gcalendar_anchor, plgdata->cal_timestamp, &anchor_error); } if (plgdata->contacts && plgdata->cont_timestamp) { + osync_assert(plgdata->gcontact_anchor); osync_trace(TRACE_INTERNAL, "query updated timestamp: %s\n", plgdata->cont_timestamp); osync_anchor_update(plgdata->gcontact_anchor, plgdata->cont_timestamp, |