From 1d31dccfcd65a65093a1cd56e89805a0ec52336d Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 23 May 2007 05:29:54 +0000 Subject: [PATCH] Monotone-Parent: 58e78126183c1ff9ea959547093ca49f4c4e57d1 Monotone-Revision: 5b99bc42878b3f6237ea28ddfc15c31378ca515d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-23T05:29:54 Monotone-Branch: ca.inverse.sogo --- SoObjects/Appointments/SOGoCalendarComponent.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SoObjects/Appointments/SOGoCalendarComponent.m b/SoObjects/Appointments/SOGoCalendarComponent.m index 9e8c841e6..14267daf8 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.m +++ b/SoObjects/Appointments/SOGoCalendarComponent.m @@ -513,7 +513,7 @@ static BOOL sendEMailNotifications = NO; iCalPerson *currentPerson; NSEnumerator *persons; NSMutableArray *uids; - NSString *email; + NSString *email, *uid; LDAPUserManager *um; uids = [NSMutableArray array]; @@ -523,8 +523,9 @@ static BOOL sendEMailNotifications = NO; currentPerson = [persons nextObject]; while (currentPerson) { - email = [currentPerson rfc822Email]; - [uids addObject: [um getUIDForEmail: email]]; + uid = [um getUIDForEmail: [currentPerson rfc822Email]]; + if (uid) + [uids addObject: uid]; currentPerson = [persons nextObject]; }