aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-user-creatable-items-handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-user-creatable-items-handler.c')
-rw-r--r--shell/e-user-creatable-items-handler.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/e-user-creatable-items-handler.c b/shell/e-user-creatable-items-handler.c
index f45bb5183d..d7e4454cf6 100644
--- a/shell/e-user-creatable-items-handler.c
+++ b/shell/e-user-creatable-items-handler.c
@@ -150,14 +150,15 @@ get_components_from_registry (EUserCreatableItemsHandler *handler,
for (p = registry_list; p != NULL; p = p->next) {
EComponentInfo *info = p->data;
- Component *component;
+ Component *component = NULL;
e_component_registry_activate (registry, info->id, NULL);
if (info->iface != CORBA_OBJECT_NIL)
component = component_new (info->id, info->iface);
- handler->priv->components = g_slist_prepend (handler->priv->components, component);
+ if (component)
+ handler->priv->components = g_slist_prepend (handler->priv->components, component);
}
}