[evolution-ews] Fix EWS_CONNECTION_ERROR_INVALIDPROPERTYREQUEST handeling. This fix is comming to deal with error ha



commit 731d633269d26d24ae45dac2a8dbe3262ca6fdd3
Author: Pavel Ocheretny <pocheretny src gnome com>
Date:   Sun May 8 16:17:15 2011 +0300

    Fix EWS_CONNECTION_ERROR_INVALIDPROPERTYREQUEST handeling.
    This fix is comming to deal with error handeling *exceptions* in the ews_get_response_status method.
    We allow to conetnue with response parsing if this error is recieved. But EEwsItem cennot be created
    and add to items list. So need to check if Item is not null. the Error handaling will be better processed
    with new EEwsOperation API. the errors will be passed in as collection of errors

 src/server/e-ews-connection.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index f9591b5..b96558d 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -546,6 +546,7 @@ get_items_response_cb (ESoapParameter *subparam, EwsNode *enode)
 	for (node = e_soap_parameter_get_first_child_by_name (subparam, "Items");
 	     node; node = e_soap_parameter_get_next_child_by_name (subparam, "Items")) {
 		item = e_ews_item_new_from_soap_parameter (node);
+		if (!item) continue;
 		async_data->items = g_slist_append (async_data->items, item);
 	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]