Dav: handle null properties with new createMessage

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1176 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-07-12 22:34:19 +00:00
parent c7d6607f40
commit ecca2c65b7
1 changed files with 27 additions and 25 deletions

View File

@ -1365,6 +1365,7 @@ public class DavExchangeSession extends ExchangeSession {
protected List<DavConstants> buildProperties(Map<String, String> properties) { protected List<DavConstants> buildProperties(Map<String, String> properties) {
ArrayList<DavConstants> list = new ArrayList<DavConstants>(); ArrayList<DavConstants> list = new ArrayList<DavConstants>();
if (properties != null) {
for (Map.Entry<String, String> entry : properties.entrySet()) { for (Map.Entry<String, String> entry : properties.entrySet()) {
if ("read".equals(entry.getKey())) { if ("read".equals(entry.getKey())) {
list.add(Field.createDavProperty("read", entry.getValue())); list.add(Field.createDavProperty("read", entry.getValue()));
@ -1393,6 +1394,7 @@ public class DavExchangeSession extends ExchangeSession {
list.add(Field.createDavProperty("datereceived", entry.getValue())); list.add(Field.createDavProperty("datereceived", entry.getValue()));
} }
} }
}
return list; return list;
} }