Fixed a segfault when MIME type is unknown

This commit is contained in:
Pierre Pronchery 2007-06-25 08:09:23 +00:00
parent 2af156631b
commit fb9da166ae

View File

@ -140,7 +140,7 @@ static int _properties_do(Mime * mime, GtkIconTheme * theme,
else if(mime != NULL)
{
type = mime_type(mime, filename);
if(theme != NULL)
if(theme != NULL && type != NULL)
{
mime_icons(mime, theme, type, 48, &pixbuf, -1);
if(pixbuf != NULL)