[evolution-ews/gnome-3-2] Bug #665229 - Blocks creation of a None receiving account



commit e3da26f7280ed057f0a0d3f9296a3c488e842f87
Author: Milan Crha <mcrha redhat com>
Date:   Thu Dec 1 10:52:17 2011 +0100

    Bug #665229 - Blocks creation of a None receiving account

 .../exchange-ews-account-setup.c                   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/account-setup-eplugin/exchange-ews-account-setup.c b/src/account-setup-eplugin/exchange-ews-account-setup.c
index 8f48014..e542e39 100644
--- a/src/account-setup-eplugin/exchange-ews-account-setup.c
+++ b/src/account-setup-eplugin/exchange-ews-account-setup.c
@@ -309,7 +309,7 @@ org_gnome_exchange_ews_check_options(EPlugin *epl, EConfigHookPageCheckData *dat
 
 	url = camel_url_new (e_account_get_string(get_modified_account (target), E_ACCOUNT_SOURCE_URL), NULL);
 
-	if (url && url->protocol && g_ascii_strcasecmp (url->protocol, "ews") != 0)
+	if (!url || !url->protocol || g_ascii_strcasecmp (url->protocol, "ews") != 0)
 		goto exit;
 
 	/* FIXME pageid is not set while editing an account */



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