diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-08-24 12:56:44 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-08-24 12:56:44 +0800 |
commit | a7d51125891ff732d853f0462d89c1e052f454df (patch) | |
tree | 12262489f7137cc8bc03383cd99b4d2864f2bdb1 /shell/evolution-shell-component-client.c | |
parent | ce8ba9444287f5a39e5ecec8cf185b09ed088f75 (diff) | |
download | gsoc2013-evolution-a7d51125891ff732d853f0462d89c1e052f454df.tar.gz gsoc2013-evolution-a7d51125891ff732d853f0462d89c1e052f454df.tar.zst gsoc2013-evolution-a7d51125891ff732d853f0462d89c1e052f454df.zip |
Don't crash if a component cannot be activated.
svn path=/trunk/; revision=4999
Diffstat (limited to 'shell/evolution-shell-component-client.c')
-rw-r--r-- | shell/evolution-shell-component-client.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/shell/evolution-shell-component-client.c b/shell/evolution-shell-component-client.c index c6cb1463dd..bc7c1f9507 100644 --- a/shell/evolution-shell-component-client.c +++ b/shell/evolution-shell-component-client.c @@ -326,14 +326,16 @@ evolution_shell_component_client_new (const char *id) corba_object = oaf_activate_from_id ((char *) id, 0, NULL, &ev); /* Yuck. */ if (ev._major != CORBA_NO_EXCEPTION) { CORBA_exception_free (&ev); - g_error ("Could not start up component for %s. " - "(See previous error messages?)", id); + g_warning ("Could not start up component for %s. " + "(See previous error messages?)", id); + return NULL; } CORBA_exception_free (&ev); if (corba_object == CORBA_OBJECT_NIL) { - g_error ("Could not activate component %s. " - "(Maybe you need to set OAF_INFO_PATH?)", id); + g_warning ("Could not activate component %s. " + "(Maybe you need to set OAF_INFO_PATH?)", id); + return NULL; } new = gtk_type_new (evolution_shell_component_client_get_type ()); |