NULL check for accounts. Fixes #332185.
svn path=/trunk/; revision=31590
This commit is contained in:
@ -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
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user