From a25eda8a36a91914cc5216062c7fafbdaf9b0074 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 4 May 2012 13:15:21 +0200 Subject: [PATCH] Remove extra test on Google server photo data validity It sometimes can happen that a contact has filled photo's etag, while the photo itself is not present. In that case backend skipped the contact, instead of passing it without photo. --- addressbook/backends/google/e-book-backend-google.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/addressbook/backends/google/e-book-backend-google.c b/addressbook/backends/google/e-book-backend-google.c index a6a45a5..de597fd 100644 --- a/addressbook/backends/google/e-book-backend-google.c +++ b/addressbook/backends/google/e-book-backend-google.c @@ -3440,8 +3440,6 @@ _e_contact_new_from_gdata_entry (EBookBackend *backend, photo = g_object_get_data (G_OBJECT (entry), "photo"); photo_etag = gdata_contacts_contact_get_photo_etag (GDATA_CONTACTS_CONTACT (entry)); - g_return_val_if_fail ((photo == NULL) == (photo_etag == NULL), NULL); - if (photo != NULL) { /* Photo */ e_contact_set (E_CONTACT (vcard), E_CONTACT_PHOTO, photo); -- 2.7.4