From cc318fdef1a001a619bf1c3cb832f0e15fcb703d Mon Sep 17 00:00:00 2001 From: Veerapuram Varadhan Date: Fri, 12 Aug 2005 07:42:10 +0000 Subject: : Check "prd" for NULL, ALWAYS. * proxy.c: (proxy_commit) : Check "prd" for NULL, ALWAYS. svn path=/trunk/; revision=30092 --- plugins/groupwise-features/ChangeLog | 5 +++++ plugins/groupwise-features/proxy.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/groupwise-features/ChangeLog b/plugins/groupwise-features/ChangeLog index 8c129b5d1b..d0ceb35323 100644 --- a/plugins/groupwise-features/ChangeLog +++ b/plugins/groupwise-features/ChangeLog @@ -1,3 +1,8 @@ +2005-08-11 Veerapuram Varadhan + + * proxy.c: + (proxy_commit) : Check "prd" for NULL, ALWAYS. + 2005-08-10 Sankar P * proxy.c : diff --git a/plugins/groupwise-features/proxy.c b/plugins/groupwise-features/proxy.c index f338d904a3..ab48483dc8 100644 --- a/plugins/groupwise-features/proxy.c +++ b/plugins/groupwise-features/proxy.c @@ -537,10 +537,13 @@ proxy_commit (GtkWidget *button, EConfigHookItemFactoryData *data) target_account = (EMConfigTargetAccount *)data->config->target; account = target_account->account; prd = g_object_get_data ((GObject *)account, "prd"); + + /* In case of non-GroupWise preferences edit, "prd" will be NULL. */ + if (!prd || !prd->priv || !prd->priv->proxy_list) + return; + priv = prd->priv; list_iter = priv->proxy_list; - if (prd == NULL || list_iter == NULL) - return; for (;list_iter; list_iter = g_list_next (list_iter)) { aclInstance = (proxyHandler *) list_iter->data; -- cgit v1.2.3