[evolution] A bit less 'camel_exception_get_id called with NULL parameter' on console
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution] A bit less 'camel_exception_get_id called with NULL parameter' on console
- Date: Tue, 19 Jan 2010 17:21:24 +0000 (UTC)
commit b6399b9f7a76a533d477507751c5b972f6bc48fc
Author: Milan Crha <mcrha redhat com>
Date: Tue Jan 19 18:20:15 2010 +0100
A bit less 'camel_exception_get_id called with NULL parameter' on console
mail/em-utils.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/mail/em-utils.c b/mail/em-utils.c
index eab434d..92fd531 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -1404,6 +1404,7 @@ gchar *em_uri_to_camel(const gchar *euri)
EAccountService *service;
CamelProvider *provider;
CamelURL *eurl, *curl;
+ CamelException ex = CAMEL_EXCEPTION_INITIALISER;
gchar *uid, *curi;
if (strncmp(euri, "email:", 6) != 0) {
@@ -1464,8 +1465,11 @@ gchar *em_uri_to_camel(const gchar *euri)
}
service = account->source;
- if (!(provider = camel_provider_get (service->url, NULL)))
+ if (!(provider = camel_provider_get (service->url, &ex))) {
+ camel_exception_clear (&ex);
return g_strdup (euri);
+ }
+ camel_exception_clear (&ex);
curl = camel_url_new(service->url, NULL);
if (provider->url_flags & CAMEL_URL_FRAGMENT_IS_PATH)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]