--- gimp-2.6.11/app/widgets/gimpviewrendererimagefile.c
+++ gimp-2.6.11-new/app/widgets/gimpviewrendererimagefile.c
@@ -180,8 +180,10 @@
 
           icon = g_file_info_get_icon (file_info);
 
-          info = gtk_icon_theme_lookup_by_gicon (icon_theme, icon, size, 0);
-          pixbuf = gtk_icon_info_load_icon (info, NULL);
+          if (icon)
+            info = gtk_icon_theme_lookup_by_gicon (icon_theme, icon, size, 0);
+          if (info)
+            pixbuf = gtk_icon_info_load_icon (info, NULL);
 
           g_object_unref (file_info);
         }
