* don't choke if the vcard fails to load
[citadel.git] / webcit / messages.c
index 055009199cf6cfc05193dc627fe1e6424e1ea8ae..c6d1c6e75602ef741d3949d1318c5914b825dcdf 100644 (file)
@@ -884,6 +884,8 @@ void readloop(long oper)
                        case VIEW_ADDRESSBOOK:
                                ab_name = NULL;
                                fetch_ab_name(Msg, &ab_name);
+                               if (ab_name == NULL) 
+                                       break;
                                ++num_ab;
                                addrbook = realloc(addrbook,
                                                   (sizeof(addrbookent) * num_ab) );