Carddav: fix null value in email address

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1476 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-09-24 22:44:15 +00:00
parent 2d0f0de86c
commit f23f48e78d
1 changed files with 1 additions and 1 deletions

View File

@ -913,7 +913,7 @@ public class EwsExchangeSession extends ExchangeSession {
// handle email addresses
IndexedFieldUpdate emailFieldUpdate = null;
for (Map.Entry<String, String> entry : entrySet()) {
if (entry.getKey().startsWith("smtpemail")) {
if (entry.getKey().startsWith("smtpemail") && entry.getValue() != null) {
if (emailFieldUpdate == null) {
emailFieldUpdate = new IndexedFieldUpdate("EmailAddresses");
}