aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/printing/e-contact-print.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/printing/e-contact-print.c')
-rw-r--r--addressbook/printing/e-contact-print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addressbook/printing/e-contact-print.c b/addressbook/printing/e-contact-print.c
index 18e5922854..42c7718379 100644
--- a/addressbook/printing/e-contact-print.c
+++ b/addressbook/printing/e-contact-print.c
@@ -478,7 +478,7 @@ e_contact_print_card (ECardSimple *simple, EContactPrintContext *ctxt)
char *string;
string = e_card_simple_get(simple, field);
- if (!strncmp (string, "<?xml", 4)) {
+ if (string && !strncmp (string, "<?xml", 4)) {
EDestination *dest = e_destination_import (string);
if (dest != NULL) {
gchar *new_string = g_strdup (e_destination_get_address (dest));