[evolution-data-server] (Follow-up of bug #704895) [Google book] Removal of a nickname throws an error



commit f6bffd2a742ef4b57d084f88317201872f602af5
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jul 30 11:21:30 2013 +0200

    (Follow-up of bug #704895) [Google book] Removal of a nickname throws an error

 addressbook/backends/google/e-book-google-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/backends/google/e-book-google-utils.c 
b/addressbook/backends/google/e-book-google-utils.c
index 0cb6319..65e682b 100644
--- a/addressbook/backends/google/e-book-google-utils.c
+++ b/addressbook/backends/google/e-book-google-utils.c
@@ -198,7 +198,7 @@ gdata_entry_update_from_e_contact (GDataEntry *entry,
 
        /* Nickname */
        nickname = e_contact_get (contact, E_CONTACT_NICKNAME);
-       gdata_contacts_contact_set_nickname (GDATA_CONTACTS_CONTACT (entry), nickname);
+       gdata_contacts_contact_set_nickname (GDATA_CONTACTS_CONTACT (entry), nickname && *nickname ? nickname 
: NULL);
        g_free (nickname);
 
        /* Clear out all the old attributes */


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