[evolution-ews] Free/Busy fetching failed on XML parsing
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Free/Busy fetching failed on XML parsing
- Date: Thu, 8 Nov 2012 18:40:15 +0000 (UTC)
commit 7fa0a8720aafd03312ccc633c06c0f8abbb6f8d5
Author: Milan Crha <mcrha redhat com>
Date: Thu Nov 8 19:39:23 2012 +0100
Free/Busy fetching failed on XML parsing
src/server/e-ews-connection.c | 24 ++++++++----------------
1 files changed, 8 insertions(+), 16 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index 17d76c7..4e1f38f 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -6085,26 +6085,18 @@ get_free_busy_response_cb (ESoapResponse *response,
while (subparam != NULL) {
ESoapParameter *subsubparam;
- subsubparam = e_soap_response_get_first_parameter_by_name (
- response, "ResponseMessage", &error);
+ subsubparam = e_soap_parameter_get_first_child_by_name (
+ subparam, "ResponseMessage");
- /* Sanity check */
- g_return_if_fail (
- (subsubparam != NULL && error == NULL) ||
- (subsubparam == NULL && error != NULL));
-
- if (error != NULL) {
- g_simple_async_result_take_error (simple, error);
- return;
- }
+ if (subsubparam) {
+ if (!ews_get_response_status (subsubparam, &error)) {
+ g_simple_async_result_take_error (simple, error);
+ return;
+ }
- if (!ews_get_response_status (subsubparam, &error)) {
- g_simple_async_result_take_error (simple, error);
- return;
+ ews_handle_free_busy_view (subparam, async_data);
}
- ews_handle_free_busy_view (subparam, async_data);
-
subparam = e_soap_parameter_get_next_child (subparam);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]