aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-registry.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-registry.c')
-rw-r--r--shell/e-shell-registry.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/e-shell-registry.c b/shell/e-shell-registry.c
index dfab78da83..af95b0adad 100644
--- a/shell/e-shell-registry.c
+++ b/shell/e-shell-registry.c
@@ -129,7 +129,9 @@ e_shell_registry_get_canonical_name (const gchar *name)
{
EShellModule *shell_module;
- g_return_val_if_fail (name != NULL, NULL);
+ /* Handle NULL arguments silently. */
+ if (name == NULL)
+ return NULL;
shell_module = e_shell_registry_get_module_by_name (name);