]> err.no Git - scalable-opengroupware.org/commitdiff
improved vCard parsing
authorhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 18 Jul 2005 20:16:49 +0000 (20:16 +0000)
committerhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 18 Jul 2005 20:16:49 +0000 (20:16 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@810 d1b88da0-ebda-0310-925b-ed51d893ca5b

SOGo/SoObjects/Contacts/ChangeLog
SOGo/SoObjects/Contacts/SOGoContactObject.m
SOGo/SoObjects/Contacts/Version

index 9896637a705a7c237dfc74c38b9f723d54a090e1..3fa163299e8da7534d04db70feda75172af7b20d 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-18  Helge Hess  <helge.hess@opengroupware.org>
+
+       * SOGoContactObject.m: print an error log if a vCard could not be
+         parsed, cached failed parsing attempts (v0.9.14)
+
 2005-07-15  Helge Hess  <helge.hess@opengroupware.org>
 
        * SOGoContactFolder.m: fixed a gcc 4.0 warning (v0.9.13)
index 9092b2a2d5da2327e8219ab77518503a0c4a43ae..05f05fb681e97f52cd9dbb0b3d0e7c9f559ea95d 100644 (file)
       NSArray *v;
       
       v = [NGVCard parseVCardsFromSource:s];
-      if ([v count] == 0)
+      if ([v count] == 0) {
+       [self errorWithFormat:@"Could not parse vCards from content!"];
        return nil;
+      }
       
       self->record = [[v objectAtIndex:0] retain];
     }
     else
       self->record = [[s propertyList] copy];
+    
+    if (self->record == nil)
+      self->record = [[NSNull null] retain];
   }
   return [self->record isNotNull] ? self->record : nil;
 }
index fd6a9b550b43c98b5869f9fd30a8864bc9a6fd7b..756a577e142a6eb1e01ce607bea114bb63c945ba 100644 (file)
@@ -1,6 +1,6 @@
 # version file
 
-SUBMINOR_VERSION:=13
+SUBMINOR_VERSION:=14
 
 # v0.9.12 requires libSOGo            v0.9.54
 # v0.9.9  requires libGDLContentStore v4.5.26