aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-12-05 06:01:31 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-12-05 06:01:31 +0800
commitca38e63a1bb3db4607b8ddfcff334e6ba4c7ef99 (patch)
tree611228418dfc40f16cb41081d1745890c7761e23 /shell/main.c
parentfc99cb4acc8ceb442d65171671f1100aff549786 (diff)
downloadgsoc2013-evolution-ca38e63a1bb3db4607b8ddfcff334e6ba4c7ef99.tar.gz
gsoc2013-evolution-ca38e63a1bb3db4607b8ddfcff334e6ba4c7ef99.tar.zst
gsoc2013-evolution-ca38e63a1bb3db4607b8ddfcff334e6ba4c7ef99.zip
Handle a NIL return value from `oaf_activate_from_id' without
crashing. svn path=/trunk/; revision=6784
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/main.c b/shell/main.c
index 421dc85ba9..a628348049 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -126,7 +126,8 @@ new_view_on_running_shell (void)
CORBA_exception_init (&ev);
corba_object = oaf_activate_from_id (E_SHELL_OAFIID, 0, NULL, &ev);
- if (ev._major != CORBA_NO_EXCEPTION) {
+ if (ev._major != CORBA_NO_EXCEPTION
+ || CORBA_Object_is_nil (corba_object, &ev)) {
e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
_("Cannot initialize the Evolution shell."));
return;