[evolution-data-server/openismus-work-3-8: 28/43] EBookClient: Fixed e_book_client_cursor_get_contact_alphabetic_index()



commit 3145109d82924c15d643af453466a853bebd9ed0
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Fri Nov 29 22:02:50 2013 +0900

    EBookClient: Fixed e_book_client_cursor_get_contact_alphabetic_index()
    
    Fixed the above function to not pass NULL to e_collator_get_index()

 addressbook/libebook/e-book-client-cursor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libebook/e-book-client-cursor.c b/addressbook/libebook/e-book-client-cursor.c
index 06d9656..f484615 100644
--- a/addressbook/libebook/e-book-client-cursor.c
+++ b/addressbook/libebook/e-book-client-cursor.c
@@ -2796,7 +2796,7 @@ e_book_client_cursor_get_contact_alphabetic_index (EBookClientCursor   *cursor,
                 */
                field = e_contact_field_id (priv->sort_fields[0]);
                value = e_contact_get_const (contact, field);
-               index = e_collator_get_index (priv->collator, value);
+               index = e_collator_get_index (priv->collator, value ? value : "");
        }
 
        return index;


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