From b6fb54466f30b83d74cf118f2f9aa73b5ee61505 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 6 Apr 2005 05:42:30 +0000 Subject: noop if we can't open the book/we're disabled. 2005-04-05 Not Zed * bbdb.c (bbdb_handle_reply): noop if we can't open the book/we're disabled. svn path=/trunk/; revision=29162 --- plugins/bbdb/bbdb.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/bbdb/bbdb.c') 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 ++) { -- cgit v1.2.3