aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/groupwise
diff options
context:
space:
mode:
authorSivaiah Nallagatla <snallagatla@novell.com>2004-01-09 16:22:16 +0800
committerSivaiah Nallagatla <siva@src.gnome.org>2004-01-09 16:22:16 +0800
commitaf3f81fbeaebd6d45fb4142611c1338c576da29f (patch)
treef2a5ac4e3280d914140640ff46439f94a1caeba7 /camel/providers/groupwise
parent8f04fc1559807f287f20f6a10604dc16addfca5f (diff)
downloadgsoc2013-evolution-af3f81fbeaebd6d45fb4142611c1338c576da29f.tar
gsoc2013-evolution-af3f81fbeaebd6d45fb4142611c1338c576da29f.tar.gz
gsoc2013-evolution-af3f81fbeaebd6d45fb4142611c1338c576da29f.tar.bz2
gsoc2013-evolution-af3f81fbeaebd6d45fb4142611c1338c576da29f.tar.lz
gsoc2013-evolution-af3f81fbeaebd6d45fb4142611c1338c576da29f.tar.xz
gsoc2013-evolution-af3f81fbeaebd6d45fb4142611c1338c576da29f.tar.zst
gsoc2013-evolution-af3f81fbeaebd6d45fb4142611c1338c576da29f.zip
added null check for source url to take care of accounts with Server Types
2004-01-09 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/groupwise-config-listener.c (is_groupwise_account): added null check for source url to take care of accounts with Server Types as "None" svn path=/trunk/; revision=24129
Diffstat (limited to 'camel/providers/groupwise')
-rw-r--r--camel/providers/groupwise/groupwise-config-listener.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/camel/providers/groupwise/groupwise-config-listener.c b/camel/providers/groupwise/groupwise-config-listener.c
index bd6b256035..3b368ac079 100644
--- a/camel/providers/groupwise/groupwise-config-listener.c
+++ b/camel/providers/groupwise/groupwise-config-listener.c
@@ -125,7 +125,12 @@ finalize (GObject *object)
static gboolean
is_groupwise_account (EAccount *account)
{
- return (strncmp (account->source->url, GROUPWISE_URI_PREFIX, GROUPWISE_PREFIX_LENGTH ) == 0);
+ if (account->source->url != NULL) {
+
+ return (strncmp (account->source->url, GROUPWISE_URI_PREFIX, GROUPWISE_PREFIX_LENGTH ) == 0);
+ } else {
+ return FALSE;
+ }
}