1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-21 23:18:49 -05:00

EWS: avoid NullPointerException in fixAttendees

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2306 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2014-07-28 21:58:08 +00:00
parent 448c72895a
commit d071c59e4a

View File

@ -1868,6 +1868,7 @@ public class EwsExchangeSession extends ExchangeSession {
} }
protected void fixAttendees(GetItemMethod getItemMethod, VObject vEvent) throws EWSException { protected void fixAttendees(GetItemMethod getItemMethod, VObject vEvent) throws EWSException {
if (getItemMethod.getResponseItem() != null) {
List<EWSMethod.Attendee> attendees = getItemMethod.getResponseItem().getAttendees(); List<EWSMethod.Attendee> attendees = getItemMethod.getResponseItem().getAttendees();
if (attendees != null) { if (attendees != null) {
for (EWSMethod.Attendee attendee : attendees) { for (EWSMethod.Attendee attendee : attendees) {
@ -1886,6 +1887,7 @@ public class EwsExchangeSession extends ExchangeSession {
} }
} }
} }
}
@Override @Override
public List<ExchangeSession.Contact> searchContacts(String folderPath, Set<String> attributes, Condition condition, int maxCount) throws IOException { public List<ExchangeSession.Contact> searchContacts(String folderPath, Set<String> attributes, Condition condition, int maxCount) throws IOException {