aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-01-20 01:20:15 +0800
committerMilan Crha <mcrha@redhat.com>2010-01-20 01:21:06 +0800
commitb6399b9f7a76a533d477507751c5b972f6bc48fc (patch)
tree73b421c508816948b3f882e5d4378a9ef409b2ad
parent78ad32af01e60e03098ce97762353db8cab25293 (diff)
downloadgsoc2013-evolution-b6399b9f7a76a533d477507751c5b972f6bc48fc.tar
gsoc2013-evolution-b6399b9f7a76a533d477507751c5b972f6bc48fc.tar.gz
gsoc2013-evolution-b6399b9f7a76a533d477507751c5b972f6bc48fc.tar.bz2
gsoc2013-evolution-b6399b9f7a76a533d477507751c5b972f6bc48fc.tar.lz
gsoc2013-evolution-b6399b9f7a76a533d477507751c5b972f6bc48fc.tar.xz
gsoc2013-evolution-b6399b9f7a76a533d477507751c5b972f6bc48fc.tar.zst
gsoc2013-evolution-b6399b9f7a76a533d477507751c5b972f6bc48fc.zip
A bit less 'camel_exception_get_id called with NULL parameter' on console
-rw-r--r--mail/em-utils.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index eab434dfaf..92fd53196c 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)