From 722969d52596f78bea02dc81023209c1d8cc0839 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 8 Jan 2004 06:04:05 +0000 Subject: check that we found any importers before deferencing the pointer. 2004-01-08 Not Zed * e-shell-startup-wizard.c (get_intelligent_importers): check that we found any importers before deferencing the pointer. svn path=/trunk/; revision=24103 --- shell/e-shell-startup-wizard.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'shell/e-shell-startup-wizard.c') diff --git a/shell/e-shell-startup-wizard.c b/shell/e-shell-startup-wizard.c index ac6d6a4770..9e04cbf7bd 100644 --- a/shell/e-shell-startup-wizard.c +++ b/shell/e-shell-startup-wizard.c @@ -524,6 +524,12 @@ get_intelligent_importers (void) query = g_strdup_printf ("repo_ids.has ('IDL:GNOME/Evolution/IntelligentImporter:%s'", BASE_VERSION); info_list = bonobo_activation_query (query, NULL, &ev); g_free (query); + + if (BONOBO_EX (&ev) || info_list == CORBA_OBJECT_NIL) { + g_warning ("Cannot find importers -- %s", BONOBO_EX_REPOID (&ev)); + CORBA_exception_free (&ev); + return NULL; + } CORBA_exception_free (&ev); for (i = 0; i < info_list->_length; i++) { -- cgit v1.2.3