diff options
author | Milan Crha <mcrha@redhat.com> | 2010-01-20 01:20:15 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-01-20 01:21:06 +0800 |
commit | b6399b9f7a76a533d477507751c5b972f6bc48fc (patch) | |
tree | 73b421c508816948b3f882e5d4378a9ef409b2ad /mail | |
parent | 78ad32af01e60e03098ce97762353db8cab25293 (diff) | |
download | gsoc2013-evolution-b6399b9f7a76a533d477507751c5b972f6bc48fc.tar.gz gsoc2013-evolution-b6399b9f7a76a533d477507751c5b972f6bc48fc.tar.zst gsoc2013-evolution-b6399b9f7a76a533d477507751c5b972f6bc48fc.zip |
A bit less 'camel_exception_get_id called with NULL parameter' on console
Diffstat (limited to 'mail')
-rw-r--r-- | 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 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) |