aboutsummaryrefslogtreecommitdiff
path: root/src/addressbook.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-04-17 05:55:10 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-04-17 05:55:10 +0000
commit0d3959531207004cb897c47319ac3a71aa532d19 (patch)
treec8f475341fc8262450b440c86d4ca0e587ea4ab9 /src/addressbook.c
parentc555c5d5eb02b08a1efb7014a690dfc62d897e1e (diff)
in addressbook, fixed a crash bug that if a person was removed and its e-mail address was referenced by a group in another folder.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1642 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/addressbook.c')
-rw-r--r--src/addressbook.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/addressbook.c b/src/addressbook.c
index a515dcb3..09a89316 100644
--- a/src/addressbook.c
+++ b/src/addressbook.c
@@ -2053,6 +2053,10 @@ static void addressbook_load_group( GtkCTree *clist, ItemGroup *itemGroup ) {
if( ! email ) continue;
person = ( ItemPerson * ) ADDRITEM_PARENT(email);
+ if( ! person ) {
+ g_warning("email %p (%s) don't have parent\n", email, email->address);
+ continue;
+ }
str = addressbook_format_item_clist( person, email );
if( str ) {
text[COL_NAME] = str;