From 0d3959531207004cb897c47319ac3a71aa532d19 Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 17 Apr 2007 05:55:10 +0000 Subject: 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 --- src/addressbook.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/addressbook.c') 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; -- cgit v1.2.3