aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 9df678ecb8..64f01c9ecf 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,9 @@
+2003-05-14 Chris Toshok <toshok@ximian.com>
+
+ * gui/contact-editor/e-contact-editor.c (address_mailing_changed):
+ handle the case where we haven't filled in the address yet. fixes
+ #42620.
+
2003-05-14 JP Rosevear <jpr@ximian.com>
* gui/component/addressbook.c (addressbook_view_unref): clear the
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