From ad3fd1d471c7cc32de1e6a2697e04a9276165a2c Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 21 Jul 2000 09:13:35 +0000 Subject: Prevent a crash by avoiding calling the populate_folder_context_menu function when NULL. (Ooops, I forgot this.) svn path=/trunk/; revision=4253 --- shell/evolution-shell-component.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shell/evolution-shell-component.c') diff --git a/shell/evolution-shell-component.c b/shell/evolution-shell-component.c index c3560b2776..e5d2d9edda 100644 --- a/shell/evolution-shell-component.c +++ b/shell/evolution-shell-component.c @@ -280,6 +280,9 @@ impl_ShellComponent_populate_folder_context_menu (PortableServer_Servant servant shell_component = EVOLUTION_SHELL_COMPONENT (bonobo_object); priv = shell_component->priv; + if (priv->populate_folder_context_menu_fn == NULL) + return; + uih = bonobo_ui_handler_new (); bonobo_ui_handler_set_container (uih, corba_uih); -- cgit v1.2.3