aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations/exchange-account-setup.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-10-09 02:22:50 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-10-09 02:22:50 +0800
commit6cf6c0cada7a95853daa122032dbee3a823c4953 (patch)
treed6f9c06fd53b063bf0ed0c496e4413dbbd380137 /plugins/exchange-operations/exchange-account-setup.c
parent48edab7b48fc3965701cda4a5d743a7d7053114f (diff)
downloadgsoc2013-evolution-6cf6c0cada7a95853daa122032dbee3a823c4953.tar
gsoc2013-evolution-6cf6c0cada7a95853daa122032dbee3a823c4953.tar.gz
gsoc2013-evolution-6cf6c0cada7a95853daa122032dbee3a823c4953.tar.bz2
gsoc2013-evolution-6cf6c0cada7a95853daa122032dbee3a823c4953.tar.lz
gsoc2013-evolution-6cf6c0cada7a95853daa122032dbee3a823c4953.tar.xz
gsoc2013-evolution-6cf6c0cada7a95853daa122032dbee3a823c4953.tar.zst
gsoc2013-evolution-6cf6c0cada7a95853daa122032dbee3a823c4953.zip
** Fix for bug #530606
2008-10-08 Milan Crha <mcrha@redhat.com> ** Fix for bug #530606 * exchange-contacts.c: (e_exchange_contacts_get_contacts), (e_exchange_contacts_pcontacts_on_change), (e_exchange_contacts_pcontacts), (e_exchange_contacts_check), (e_exchange_contacts_commit): * exchange-account-setup.c: (btn_chpass_clicked), (btn_dass_clicked), (btn_fsize_clicked), (org_gnome_exchange_show_folder_size_factory): * exchange-calendar.c: (e_exchange_calendar_get_calendars), (e_exchange_calendar_pcalendar_on_change), (e_exchange_calendar_pcalendar), (e_exchange_calendar_check), (e_exchange_calendar_commit): Check validity of returned pointer before using it. svn path=/trunk/; revision=36579
Diffstat (limited to 'plugins/exchange-operations/exchange-account-setup.c')
-rw-r--r--plugins/exchange-operations/exchange-account-setup.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/exchange-operations/exchange-account-setup.c b/plugins/exchange-operations/exchange-account-setup.c
index f4f4900dec..275a214b90 100644
--- a/plugins/exchange-operations/exchange-account-setup.c
+++ b/plugins/exchange-operations/exchange-account-setup.c
@@ -123,6 +123,8 @@ btn_chpass_clicked (GtkButton *button, gpointer data)
ExchangeAccountResult result;
account = exchange_operations_get_exchange_account ();
+ if (!account)
+ return;
old_password = exchange_account_get_password (account);
if (!old_password) {
@@ -149,6 +151,8 @@ btn_dass_clicked (GtkButton *button, gpointer data)
{
ExchangeAccount *account;
account = exchange_operations_get_exchange_account ();
+ if (!account)
+ return;
exchange_delegates (account, gtk_widget_get_ancestor (GTK_WIDGET (button), GTK_TYPE_WINDOW));
}
@@ -159,6 +163,8 @@ btn_fsize_clicked (GtkButton *button, gpointer data)
GtkListStore *model;
account = exchange_operations_get_exchange_account ();
+ if (!account)
+ return;
model = exchange_account_folder_size_get_model (account);
if (model)
@@ -1050,7 +1056,10 @@ org_gnome_exchange_show_folder_size_factory (EPlugin *epl, EConfigHookItemFactor
if (g_ascii_strcasecmp (provider->protocol, "exchange"))
return NULL;
- account = exchange_operations_get_exchange_account ();
+ account = exchange_operations_get_exchange_account ();
+ if (!account)
+ return NULL;
+
exchange_account_is_offline (account, &mode);
if (mode == OFFLINE_MODE)
return NULL;