mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 19:35:38 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user