From a9169a2823c0020fc83a4d103a7693694524e581 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 4 Feb 2011 16:34:47 +0000 Subject: [PATCH] Monotone-Parent: 71e8d6e738a201066fe20c3c31bde9c788ee9743 Monotone-Revision: 1126d6ad15404744e779f38d1c079d25ecf95422 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-02-04T16:34:47 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ OpenChange/SOGoMAPIFSMessage.m | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5ac38cda8..edf23a415 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-02-04 Wolfgang Sourdeau + * OpenChange/SOGoMAPIFSMessage.m (-properties): initialize + properties to an empty dictionary if the initialization from file + failed. + * OpenChange/MAPIStoreMailMessageTable.m (-childKeys) (-restrictedChildKeys): now only return non-deleted elements. diff --git a/OpenChange/SOGoMAPIFSMessage.m b/OpenChange/SOGoMAPIFSMessage.m index 3fb7505b4..b52966a1c 100644 --- a/OpenChange/SOGoMAPIFSMessage.m +++ b/OpenChange/SOGoMAPIFSMessage.m @@ -61,6 +61,8 @@ stringByAppendingPathComponent: nameInContainer]; properties = [[NSMutableDictionary alloc] initWithContentsOfFile: filePath]; + if (!properties) + properties = [NSMutableDictionary new]; } return properties;