From 4884cb3978c1401ff4310265ff409eb7f335f623 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 29 Sep 2021 16:02:52 -0400 Subject: [PATCH] fix(addressbook): properly handle unknown properties in DAV report --- SoObjects/Contacts/SOGoContactSourceFolder.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/SoObjects/Contacts/SOGoContactSourceFolder.m b/SoObjects/Contacts/SOGoContactSourceFolder.m index e31607f12..41fa9a3d0 100644 --- a/SoObjects/Contacts/SOGoContactSourceFolder.m +++ b/SoObjects/Contacts/SOGoContactSourceFolder.m @@ -527,12 +527,15 @@ currentValue = values; while (*currentProperty) { + *values = nil; methodSel = SOGoSelectorForPropertyGetter (*currentProperty); if (methodSel && [ldifEntry respondsToSelector: methodSel]) - *currentValue = [[ldifEntry performSelector: methodSel] - safeStringByEscapingXMLString]; + { + *currentValue = [[ldifEntry performSelector: methodSel] + safeStringByEscapingXMLString]; + currentValue++; + } currentProperty++; - currentValue++; } // NSLog (@"/_properties:ofObject:: %@", [NSDate date]);