sync with sylpheed 0.6.2cvs9
[claws.git] / src / addressbook.c
index 7e0a7d31b1a69cf8e9e963b56e23c7a14f7e1d43..62b9c8966bc5c2ee076dfb7744fa1a1951e8c858 100644 (file)
@@ -2009,7 +2009,7 @@ static void addressbook_folder_load_person( GtkCTree *clist, ItemFolder *itemFol
                        text[COL_ADDRESS] = email->address;
                        text[COL_REMARKS] = email->remarks;
                        eMailAddr = ADDRITEM_NAME(email);
-                       if( *eMailAddr == '\0' ) eMailAddr = NULL;
+                       if( eMailAddr && *eMailAddr == '\0' ) eMailAddr = NULL;
                        if( flgFirst ) {
                                /* First email belongs with person */
                                gchar *str = addressbook_format_item_clist( person, email );