]> err.no Git - scalable-opengroupware.org/commitdiff
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1178 d1b88da0-ebda-0310...
authorwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 17 Sep 2007 14:21:23 +0000 (14:21 +0000)
committerwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 17 Sep 2007 14:21:23 +0000 (14:21 +0000)
ChangeLog
SoObjects/SOGo/SOGoParentFolder.m

index 613a3afc63c95e49310732c3799f08c26d73d722..72ce783ca7e77352e062d0526f1cdd9a4944e0c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-09-17  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
+
+       * SoObjects/SOGo/SOGoParentFolder.m ([SOGoParentFolder
+       -appendPersonalSources]): make sure the value of the "c_path4" of
+       the returned rows are not NSNull, otherwise, discard them.
+
 2007-09-16  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
 
        * SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder
index 37604a352797619d8566a65f3cdd1f685ed0d16e..224fffbafa8fff74f4ad62b11e247c43b9c03efe 100644 (file)
   row = [fc fetchAttributes: attrs withZone: NULL];
   while (row)
     {
-      folder
-       = [subFolderClass objectWithName: [row objectForKey: @"c_path4"]
-                         inContainer: self];
       key = [row objectForKey: @"c_path4"];
-      hasPersonal = (hasPersonal || [key isEqualToString: @"personal"]);
-      [folder setOCSPath: [NSString stringWithFormat: @"%@/%@",
-                                   OCSPath, key]];
-      [subFolders setObject: folder forKey: key];
+      if ([key isKindOfClass: [NSString class]])
+       {
+         folder = [subFolderClass objectWithName: key inContainer: self];
+         hasPersonal = (hasPersonal || [key isEqualToString: @"personal"]);
+         [folder setOCSPath: [NSString stringWithFormat: @"%@/%@",
+                                       OCSPath, key]];
+         [subFolders setObject: folder forKey: key];
+       }
       row = [fc fetchAttributes: attrs withZone: NULL];
     }