aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 5bd70e5be3..a432bed390 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -1871,7 +1871,8 @@ em_utils_in_addressbook(CamelInternetAddress *iaddr)
time_t now;
/* TODO: check all addresses? */
- if (!camel_internet_address_get(iaddr, 0, NULL, &addr))
+ if (iaddr == NULL
+ || !camel_internet_address_get(iaddr, 0, NULL, &addr))
return FALSE;
pthread_mutex_lock(&emu_addr_lock);