]> www.fi.muni.cz Git - evince.git/commitdiff
Actually return NULL for types we dont support
authorMarco Pesenti Gritti <mpg@redhat.com>
Fri, 8 Jul 2005 16:21:14 +0000 (16:21 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Fri, 8 Jul 2005 16:21:14 +0000 (16:21 +0000)
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

ChangeLog
properties/ev-properties-main.c

index b4e2c382c90592ef5b43346c30c91e49841cbf21..4cf8b64b17be0d51d308cb14c1cd5eba626aeceb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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
+
 2005-07-08  Christian Persch  <chpe@cvs.gnome.org>
 
        * po/POTFILES.in:
index 64f5707bf6fc22ca09044a2c271427e05c08dce6..c92a8042e7ad17c2d6bab7e35f3a2c3d4a006818 100644 (file)
@@ -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);