diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-10-21 23:20:47 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-10-21 23:20:47 +0800 |
commit | 58573777e83d81da42285c576f95d588d27b224d (patch) | |
tree | 2c5b22e8d5ca8e670c44d98f9233b2f61fab3a10 /shell | |
parent | 0e33447271953845cc301bd51562c9c19f1bb9af (diff) | |
download | gsoc2013-evolution-58573777e83d81da42285c576f95d588d27b224d.tar gsoc2013-evolution-58573777e83d81da42285c576f95d588d27b224d.tar.gz gsoc2013-evolution-58573777e83d81da42285c576f95d588d27b224d.tar.bz2 gsoc2013-evolution-58573777e83d81da42285c576f95d588d27b224d.tar.lz gsoc2013-evolution-58573777e83d81da42285c576f95d588d27b224d.tar.xz gsoc2013-evolution-58573777e83d81da42285c576f95d588d27b224d.tar.zst gsoc2013-evolution-58573777e83d81da42285c576f95d588d27b224d.zip |
(e_get_activation_failure_msg): If the exception_id is NULL,
return NULL instead of crashing. [#25891]
svn path=/trunk/; revision=18397
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 6 | ||||
-rw-r--r-- | shell/evolution-shell-component-utils.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index dc6635ac9f..e48e5e1f60 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,9 @@ +2002-10-21 Ettore Perazzoli <ettore@ximian.com> + + * evolution-shell-component-utils.c + (e_get_activation_failure_msg): If the exception_id is NULL, + return NULL instead of crashing. [#25891] + 2002-10-17 Ettore Perazzoli <ettore@ximian.com> [Implement the Cancel button in the "Open other user's folder" diff --git a/shell/evolution-shell-component-utils.c b/shell/evolution-shell-component-utils.c index b3e806d296..b9e5215e69 100644 --- a/shell/evolution-shell-component-utils.c +++ b/shell/evolution-shell-component-utils.c @@ -155,6 +155,9 @@ e_get_activation_failure_msg (CORBA_Environment *ev) { g_return_val_if_fail (ev != NULL, NULL); + if (CORBA_exception_id (ev) == NULL) + return NULL; + if (strcmp (CORBA_exception_id (ev), ex_OAF_GeneralError) != 0) { return bonobo_exception_get_text (ev); } else { |