aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/bbdb/bbdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/bbdb/bbdb.c')
-rw-r--r--plugins/bbdb/bbdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/bbdb/bbdb.c b/plugins/bbdb/bbdb.c
index d1a9619277..ef58ff9fc8 100644
--- a/plugins/bbdb/bbdb.c
+++ b/plugins/bbdb/bbdb.c
@@ -113,6 +113,8 @@ bbdb_handle_reply (EPlugin *ep, EMEventTargetMessage *target)
/* Open the addressbook */
book = bbdb_open_addressbook ();
+ if (book == NULL)
+ return;
cia = camel_mime_message_get_from (target->message);
for (i = 0; i < camel_address_length CAMEL_ADDRESS (cia); i ++) {