Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/properties
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-07-08 16:21:14 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-07-08 16:21:14 (GMT)
commitbfee37f234243b5fe70b9d0db59a29705d112eac (patch)
tree924eb43b228e1d80677b80f6e4e5ebaef5822c9e /properties
parente49f2f2af5733c5d10b37e4b48903c600be09aac (diff)
Actually return NULL for types we dont support
2005-07-08 Marco Pesenti Gritti <mpg@redhat.com> * properties/ev-properties-main.c: (ev_properties_get_pages): Actually return NULL for types we dont support
Diffstat (limited to 'properties')
-rw-r--r--properties/ev-properties-main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/properties/ev-properties-main.c b/properties/ev-properties-main.c
index 64f5707..c92a804 100644
--- a/properties/ev-properties-main.c
+++ b/properties/ev-properties-main.c
@@ -96,12 +96,14 @@ ev_properties_get_pages (NautilusPropertyPageProvider *provider,
goto end;
file = files->data;
-
/* okay, make the page */
mime = nautilus_file_info_get_mime_type (file);
document = ev_document_factory_get_document (mime);
g_free (mime);
+ if (document == NULL)
+ goto end;
+
uri = nautilus_file_info_get_uri (file);
if (!ev_document_load (document, uri, &error)) {
g_error_free (error);