aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-user-creatable-items-handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-user-creatable-items-handler.c')
-rw-r--r--shell/e-shell-user-creatable-items-handler.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/e-shell-user-creatable-items-handler.c b/shell/e-shell-user-creatable-items-handler.c
index 1aa57ebcef..738475a06e 100644
--- a/shell/e-shell-user-creatable-items-handler.c
+++ b/shell/e-shell-user-creatable-items-handler.c
@@ -289,6 +289,9 @@ get_default_action_for_view (EShellUserCreatableItemsHandler *handler,
const char *component_id;
component = (const Component *) p->data;
+ if (component->type_list->_length == 0)
+ continue;
+
type = & component->type_list->_buffer[0];
component_id = evolution_shell_component_client_get_id (component->component_client);