summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/evolution/e-contact-entry.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/evolution/e-contact-entry.c b/src/plugins/evolution/e-contact-entry.c
index f96686e..14a822d 100644
--- a/src/plugins/evolution/e-contact-entry.c
+++ b/src/plugins/evolution/e-contact-entry.c
@@ -517,8 +517,11 @@ e_contact_entry_set_source_list (EContactEntry *entry,
if ((lookup->book = e_book_new (s, &error)) == NULL) {
/* TODO handle this better, fire the error signal I guess */
- g_warning ("%s", error->message);
- g_error_free (error);
+ if (error) {
+ g_warning ("%s", error->message);
+ g_error_free (error);
+ error = NULL;
+ }
g_free (lookup);
} else {
entry->priv->lookup_entries = g_list_append (entry->priv->lookup_entries, lookup);