Prevent a crash by avoiding calling the populate_folder_context_menu

function when NULL.  (Ooops, I forgot this.)

svn path=/trunk/; revision=4253
This commit is contained in:
Ettore Perazzoli
2000-07-21 09:13:35 +00:00
parent 7d6ff2410a
commit ad3fd1d471
2 changed files with 10 additions and 0 deletions

View File

@ -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);