From 58573777e83d81da42285c576f95d588d27b224d Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 21 Oct 2002 15:20:47 +0000 Subject: (e_get_activation_failure_msg): If the exception_id is NULL, return NULL instead of crashing. [#25891] svn path=/trunk/; revision=18397 --- shell/evolution-shell-component-utils.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shell/evolution-shell-component-utils.c') 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 { -- cgit