diff options
-rw-r--r-- | widgets/menus/gal-view-collection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/menus/gal-view-collection.c b/widgets/menus/gal-view-collection.c index fc946c84e8..fe555ee5bd 100644 --- a/widgets/menus/gal-view-collection.c +++ b/widgets/menus/gal-view-collection.c @@ -278,7 +278,7 @@ load_single_file (GalViewCollection *collection, factory = NULL; for (factories = collection->factory_list; factories; factories = factories->next) { - if (!strcmp(gal_view_factory_get_type_code(factories->data), item->type)) { + if (item->type && !strcmp(gal_view_factory_get_type_code(factories->data), item->type)) { factory = factories->data; break; } |