[evolution-patches] e-data-book patch
- From: Chris Toshok <toshok ximian com>
- To: evolution-patches ximian com
- Subject: [evolution-patches] e-data-book patch
- Date: Mon, 15 Mar 2004 07:58:12 -0800
This fixes the NULL-being-passed-to-CORBA bug reported today.
Chris
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/addressbook/ChangeLog,v
retrieving revision 1.102
diff -u -r1.102 ChangeLog
--- ChangeLog 13 Mar 2004 22:40:44 -0000 1.102
+++ ChangeLog 15 Mar 2004 15:56:22 -0000
@@ -1,3 +1,9 @@
+2004-03-15 Chris Toshok <toshok ximian com>
+
+ * libedata-book/e-data-book.c (e_data_book_respond_create): only
+ look up the contact's UID if status == Success. otherwise, send
+ "".
+
2004-03-12 Chris Toshok <toshok ximian com>
* libedata-book/e-data-book-view.h: add prototype for
Index: libedata-book/e-data-book.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/addressbook/libedata-book/e-data-book.c,v
retrieving revision 1.4
diff -u -r1.4 e-data-book.c
--- libedata-book/e-data-book.c 11 Feb 2004 17:34:24 -0000 1.4
+++ libedata-book/e-data-book.c 15 Mar 2004 15:56:23 -0000
@@ -299,7 +299,8 @@
GNOME_Evolution_Addressbook_BookListener_notifyContactCreated (
book->priv->listener, status,
- e_contact_get_const (contact, E_CONTACT_UID), &ev);
+ status == GNOME_Evolution_Addressbook_Success ? e_contact_get_const (contact, E_CONTACT_UID) : "",
+ &ev);
if (ev._major != CORBA_NO_EXCEPTION) {
g_warning ("e_data_book_respond_create: Exception "
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]