1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -05:00

LDAP: Make sure we do not send empty description field, replace " \n" with null

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@713 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-09-10 08:47:01 +00:00
parent 15396def25
commit c434a5dace

View File

@ -2733,6 +2733,8 @@ public class ExchangeSession {
} catch (ParseException e) {
throw new IOException(e);
}
} else if ("textdescription".equals(propertyName) && " \n".equals(propertyValue)) {
propertyValue = null;
}
if (propertyValue != null && propertyValue.length() > 0) {
item.put(propertyName, propertyValue);