Monotone-Parent: 4e07b3d1e8330e5242ff10554013fd21551394d5

Monotone-Revision: 514aa7865af81fdccddee5095cd390fb72c09412

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-03-20T20:56:29
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-03-20 20:56:29 +00:00
parent 59808b74b5
commit b873dce756
2 changed files with 12 additions and 2 deletions
+4
View File
@@ -1,5 +1,9 @@
2009-03-20 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoUserDefaults.m ([SOGoUserDefaults
-jsonRepresentation]): return "{}" if values is nil (due to a DB
connection error).
* SoObjects/SOGo/SOGoUser.m ([SOGoUser -userDefaults]): ensure the
values are not nil before putting them in the cache. This fixes an
exception occuring for setting a nil key in a dictionary.
+8 -2
View File
@@ -314,9 +314,15 @@ static NSString *uidColumnName = @"c_uid";
- (NSString *) jsonRepresentation
{
[self fetchProfile];
NSString *jsonRep;
return [values jsonRepresentation];
[self fetchProfile];
if (values)
jsonRep = [values jsonRepresentation];
else
jsonRep = @"{}";
return jsonRep;
}
/* value access */