mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-08 12:18:07 -05:00
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:
parent
c7d6607f40
commit
ecca2c65b7
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user