aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/component/addressbook.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index fc4c953f7d..ddc84fec84 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2002-05-21 Ettore Perazzoli <ettore@ximian.com>
+
+ * gui/component/addressbook.c (load_uri_cb): Don't try to invoke
+ e_book_get_uri() on NULL. Fixes #20069.
+
2002-05-17 Chris Toshok <toshok@ximian.com>
* gui/widgets/e-addressbook-util.c (e_addressbook_error_dialog):
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index 332ddf3b56..b74b946098 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -620,14 +620,14 @@ load_uri_auth_cb (EBook *book, EBookStatus status, gpointer closure)
static void
load_uri_cb (EBook *book, EBookStatus status, gpointer closure)
{
- AddressbookSource *source;
LoadUriData *load_uri_data = closure;
- source = addressbook_storage_get_source_by_uri (e_book_get_uri (book));
+ if (status == E_BOOK_STATUS_SUCCESS && book != NULL) {
+ AddressbookSource *source;
- if (status == E_BOOK_STATUS_SUCCESS) {
/* check if the addressbook needs authentication */
+ source = addressbook_storage_get_source_by_uri (e_book_get_uri (book));
if (source &&
source->auth != ADDRESSBOOK_LDAP_AUTH_NONE) {
const char *password;