NULL check for accounts. Fixes #332185.

svn path=/trunk/; revision=31590
This commit is contained in:
Sushma Rai
2006-02-27 09:11:33 +00:00
parent 42ac56f944
commit 6b93ed2f65
3 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2006-02-27 Sushma Rai <rsushma@novell.com>
* exchange-contacts.c (e_exchange_contacts_pcontacts): Check for NULL
account.
* exchange-calendar.c (e_exchange_calendar_pcalendar): Similar.
Fixes #332185.
2006-02-27 Sushma Rai <rsushma@novell.com>
* exchange-folder-permission.c

View File

@ -159,7 +159,6 @@ e_exchange_calendar_pcalendar (EPlugin *epl, EConfigHookItemFactoryData *data)
char *offline_msg;
GtkWidget *lbl_offline_msg;
if (!hidden)
hidden = gtk_label_new ("");
@ -212,6 +211,10 @@ e_exchange_calendar_pcalendar (EPlugin *epl, EConfigHookItemFactoryData *data)
/* REVIEW: Should this handle be freed? - Attn: surf */
account = exchange_operations_get_exchange_account ();
if (!account) {
g_free (calendar_old_source_uri);
retrun NULL;
}
account_name = account->account_name;
if (calendar_src_exists) {

View File

@ -192,6 +192,10 @@ e_exchange_contacts_pcontacts (EPlugin *epl, EConfigHookItemFactoryData *data)
}
account = exchange_operations_get_exchange_account ();
if (!account) {
g_free (contacts_old_src_uri);
return NULL;
}
account_name = account->account_name;
hbx_size = NULL;