From 4f20e34b6aeb5662034072771cb5f17cac229dab Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 4 May 2010 19:23:16 +0000 Subject: [PATCH] See ChangeLog Monotone-Parent: 1ee23312738f4184241e898cf4bb970b82a4f9a3 Monotone-Revision: 3076c5f627f3ef8a7b54cfac5834981257fcdc05 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-05-04T19:23:16 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ SoObjects/Contacts/SOGoContactSourceFolder.m | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8be0f49e4..a7b09767a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-05-04 Francis Lachapelle + + * SoObjects/Contacts/SOGoContactSourceFolder.m + (-lookupName:inContext:acquire:): verify the result of + lookupContactEntry as it will not necessarily return a contact. + 2010-04-28 Wolfgang Sourdeau * Tools/sogo-tool.m (setupUserDefaults): new function that sets up diff --git a/SoObjects/Contacts/SOGoContactSourceFolder.m b/SoObjects/Contacts/SOGoContactSourceFolder.m index 5a7b85ed8..c33fff60c 100644 --- a/SoObjects/Contacts/SOGoContactSourceFolder.m +++ b/SoObjects/Contacts/SOGoContactSourceFolder.m @@ -1,6 +1,6 @@ /* SOGoContactSourceFolder.m - this file is part of SOGo * - * Copyright (C) 2006-2009 Inverse inc. + * Copyright (C) 2006-2010 Inverse inc. * * Author: Wolfgang Sourdeau * @@ -181,7 +181,8 @@ if (!ldifEntry) { ldifEntry = [source lookupContactEntry: objectName]; - [childRecords setObject: ldifEntry forKey: objectName]; + if (ldifEntry) + [childRecords setObject: ldifEntry forKey: objectName]; } if (ldifEntry) obj = [SOGoContactLDIFEntry contactEntryWithName: objectName