aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/contact-editor
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/contact-editor')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index 8de9ca4636..bf83eeb012 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -367,6 +367,9 @@ address_mailing_changed (GtkWidget *widget, EContactEditor *editor)
address = e_card_delivery_address_copy (curr);
+ if (!address)
+ address = e_card_delivery_address_new ();
+
if (mailing_address)
address->flags |= E_CARD_ADDR_DEFAULT;
else