fix: parse empty addressbook (patch 552457)
authorThorsten Maerz <torte@netztorte.de>
Sun, 12 May 2002 15:56:21 +0000 (15:56 +0000)
committerThorsten Maerz <torte@netztorte.de>
Sun, 12 May 2002 15:56:21 +0000 (15:56 +0000)
src/summaryview.c

index 88552f2..914da8b 100644 (file)
@@ -2287,7 +2287,7 @@ static void summary_set_header(SummaryView *summaryview, gchar *text[],
                        Xstrdup_a(addr, msginfo->from, return);
                        extract_address(addr);
 
-               if (account_find_from_address(addr)) {
+               if (addr && account_find_from_address(addr)) {
                        addr = summary_complete_address(msginfo->to);
                        g_free(to);
                        to   = g_strconcat("-->", addr == NULL ? msginfo->to : addr, NULL);