aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-uri-schema-registry.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-06-28 12:50:02 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-06-28 12:50:02 +0800
commit268c7dbe4254f54f55d2bed8a9c740ee89dd9aed (patch)
tree8e0d46102300870ed29c743fa29cff4522044dba /shell/e-uri-schema-registry.c
parent764cfb5a6ba195958b1b3b814fdb584d6a5ff63b (diff)
downloadgsoc2013-evolution-268c7dbe4254f54f55d2bed8a9c740ee89dd9aed.tar.gz
gsoc2013-evolution-268c7dbe4254f54f55d2bed8a9c740ee89dd9aed.tar.zst
gsoc2013-evolution-268c7dbe4254f54f55d2bed8a9c740ee89dd9aed.zip
Make the shell to be able to display URIs that the user specified on
the command-line. svn path=/trunk/; revision=10554
Diffstat (limited to 'shell/e-uri-schema-registry.c')
-rw-r--r--shell/e-uri-schema-registry.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/e-uri-schema-registry.c b/shell/e-uri-schema-registry.c
index e27648359f..5646870925 100644
--- a/shell/e-uri-schema-registry.c
+++ b/shell/e-uri-schema-registry.c
@@ -157,8 +157,8 @@ e_uri_schema_registry_set_handler_for_schema (EUriSchemaRegistry *registry,
}
EvolutionShellComponentClient *
-e_uri_schema_get_handler_for_schema (EUriSchemaRegistry *registry,
- const char *schema)
+e_uri_schema_registry_get_handler_for_schema (EUriSchemaRegistry *registry,
+ const char *schema)
{
EUriSchemaRegistryPrivate *priv;
const SchemaHandler *handler;
@@ -170,6 +170,9 @@ e_uri_schema_get_handler_for_schema (EUriSchemaRegistry *registry,
priv = registry->priv;
handler = g_hash_table_lookup (priv->schema_to_handler, schema);
+ if (handler == NULL)
+ return NULL;
+
return handler->component;
}