diff options
Diffstat (limited to 'plugins/bbdb/bbdb.c')
-rw-r--r-- | plugins/bbdb/bbdb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/bbdb/bbdb.c b/plugins/bbdb/bbdb.c index 73f02846a0..a2ec60d243 100644 --- a/plugins/bbdb/bbdb.c +++ b/plugins/bbdb/bbdb.c @@ -435,12 +435,11 @@ source_changed_cb (ESourceComboBox *source_combo_box, GError *error = NULL; source = e_source_combo_box_get_active (source_combo_box); - g_return_if_fail (source != NULL); gconf_client_set_string ( stuff->target->gconf, GCONF_KEY_WHICH_ADDRESSBOOK, - e_source_get_uri (source), &error); + source ? e_source_get_uri (source) : "", &error); if (error != NULL) { g_warning ("%s", error->message); @@ -456,12 +455,11 @@ gaim_source_changed_cb (ESourceComboBox *source_combo_box, GError *error = NULL; source = e_source_combo_box_get_active (source_combo_box); - g_return_if_fail (source != NULL); gconf_client_set_string ( stuff->target->gconf, GCONF_KEY_WHICH_ADDRESSBOOK_GAIM, - e_source_get_uri (source), &error); + source ? e_source_get_uri (source) : "", &error); if (error != NULL) { g_warning ("%s", error->message); |