diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-08-18 02:26:09 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-08-18 02:26:09 +0800 |
commit | 88a9573572927f7d4a515ff130997bb9bdb16cfc (patch) | |
tree | 7b97163b3da872ba52ebafe4eb8a1218a620891f /shell/evolution-shell-client.c | |
parent | ba8d4eb49a8a67d3eb123d2c111a9acbe2cb6273 (diff) | |
download | gsoc2013-evolution-88a9573572927f7d4a515ff130997bb9bdb16cfc.tar gsoc2013-evolution-88a9573572927f7d4a515ff130997bb9bdb16cfc.tar.gz gsoc2013-evolution-88a9573572927f7d4a515ff130997bb9bdb16cfc.tar.bz2 gsoc2013-evolution-88a9573572927f7d4a515ff130997bb9bdb16cfc.tar.lz gsoc2013-evolution-88a9573572927f7d4a515ff130997bb9bdb16cfc.tar.xz gsoc2013-evolution-88a9573572927f7d4a515ff130997bb9bdb16cfc.tar.zst gsoc2013-evolution-88a9573572927f7d4a515ff130997bb9bdb16cfc.zip |
Added some g_warnings for when we return CORBA_OBJECT_NIL; this might help
* evolution-shell-client.c
(evolution_shell_client_get_local_storage): Added some g_warnings
for when we return CORBA_OBJECT_NIL; this might help to figure out
what is wrong with bug #6625. Also, added a missing
CORBA_exception_free().
svn path=/trunk/; revision=12165
Diffstat (limited to 'shell/evolution-shell-client.c')
-rw-r--r-- | shell/evolution-shell-client.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/shell/evolution-shell-client.c b/shell/evolution-shell-client.c index b907f7e97a..b8d454155f 100644 --- a/shell/evolution-shell-client.c +++ b/shell/evolution-shell-client.c @@ -457,11 +457,16 @@ evolution_shell_client_get_local_storage (EvolutionShellClient *shell_client) CORBA_exception_init (&ev); corba_shell = bonobo_object_corba_objref (BONOBO_OBJECT (shell_client)); - if (corba_shell == CORBA_OBJECT_NIL) + if (corba_shell == CORBA_OBJECT_NIL) { + g_warning ("evolution_shell_client_get_local_storage() invoked on an " + "EvolutionShellClient that doesn't have a CORBA objref???"); + CORBA_exception_free (&ev); return CORBA_OBJECT_NIL; + } corba_local_storage = GNOME_Evolution_Shell_getLocalStorage (corba_shell, &ev); if (ev._major != CORBA_NO_EXCEPTION) { + g_warning ("evolution_shell_client_get_local_storage() failing -- %s ???", ev._repo_id); CORBA_exception_free (&ev); return CORBA_OBJECT_NIL; } @@ -478,8 +483,8 @@ evolution_shell_client_set_line_status (EvolutionShellClient *shell_client, GNOME_Evolution_Shell corba_shell; CORBA_Environment ev; - g_return_val_if_fail (shell_client != NULL, CORBA_OBJECT_NIL); - g_return_val_if_fail (EVOLUTION_IS_SHELL_CLIENT (shell_client), CORBA_OBJECT_NIL); + g_return_if_fail (shell_client != NULL, CORBA_OBJECT_NIL); + g_return_if_fail (EVOLUTION_IS_SHELL_CLIENT (shell_client), CORBA_OBJECT_NIL); CORBA_exception_init (&ev); |