aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-08-04 10:54:28 +0800
committerChris Lahey <clahey@src.gnome.org>2001-08-04 10:54:28 +0800
commit4fabc3b420d3123921e5522ce753d56b7fc0ad58 (patch)
tree1fd501e27e6cb896bd3ae0c7f489bb005dd08c47 /addressbook/gui
parent239a8d9c93a03d93f40a255ef9d4a9f2aa7c230f (diff)
downloadgsoc2013-evolution-4fabc3b420d3123921e5522ce753d56b7fc0ad58.tar
gsoc2013-evolution-4fabc3b420d3123921e5522ce753d56b7fc0ad58.tar.gz
gsoc2013-evolution-4fabc3b420d3123921e5522ce753d56b7fc0ad58.tar.bz2
gsoc2013-evolution-4fabc3b420d3123921e5522ce753d56b7fc0ad58.tar.lz
gsoc2013-evolution-4fabc3b420d3123921e5522ce753d56b7fc0ad58.tar.xz
gsoc2013-evolution-4fabc3b420d3123921e5522ce753d56b7fc0ad58.tar.zst
gsoc2013-evolution-4fabc3b420d3123921e5522ce753d56b7fc0ad58.zip
Check for storage != NULL here. This shouldn't come up unless addressbook
2001-08-03 Christopher James Lahey <clahey@ximian.com> * gui/component/select-names/e-select-names.c (e_select_names_hookup_shell_listener): Check for storage != NULL here. This shouldn't come up unless addressbook has crashed previously within this session of evolution, but this is just a bit of insurance. svn path=/trunk/; revision=11644
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/select-names/e-select-names.c29
1 files changed, 16 insertions, 13 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c
index 9340bbce48..f1463f0020 100644
--- a/addressbook/gui/component/select-names/e-select-names.c
+++ b/addressbook/gui/component/select-names/e-select-names.c
@@ -412,20 +412,23 @@ e_select_names_hookup_shell_listener (ESelectNames *e_select_names)
gtk_signal_connect(GTK_OBJECT(e_select_names->listener), "removed_folder",
GTK_SIGNAL_FUNC(removed_folder), e_select_names);
- GNOME_Evolution_Storage_addListener(storage, listener, &ev);
- if (ev._major != CORBA_NO_EXCEPTION) {
- g_warning ("e_select_names_init: Exception adding listener to "
- "remote GNOME_Evolution_Storage interface.\n");
- CORBA_exception_free (&ev);
- return;
- }
+ if (storage != NULL) {
+ GNOME_Evolution_Storage_addListener(storage, listener, &ev);
+
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning ("e_select_names_init: Exception adding listener to "
+ "remote GNOME_Evolution_Storage interface.\n");
+ CORBA_exception_free (&ev);
+ return;
+ }
- bonobo_object_release_unref(storage, &ev);
- if (ev._major != CORBA_NO_EXCEPTION) {
- g_warning ("e_select_names_init: Exception unref'ing "
- "remote GNOME_Evolution_Storage interface.\n");
- CORBA_exception_free (&ev);
- return;
+ bonobo_object_release_unref(storage, &ev);
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning ("e_select_names_init: Exception unref'ing "
+ "remote GNOME_Evolution_Storage interface.\n");
+ CORBA_exception_free (&ev);
+ return;
+ }
}
CORBA_exception_free(&ev);