files: Avoid missing mime check

This commit is contained in:
Andy Williams 2016-11-30 01:51:46 +00:00
parent 5abd439e3e
commit 48e954137f
1 changed files with 4 additions and 1 deletions

View File

@ -179,8 +179,11 @@ _get_provider_from_hashset(const char *filename)
if ( !mime )
{
mime = efreet_mime_type_get(filename);
eina_hash_add(mime_entries, filename, strdup(mime));
if (mime)
eina_hash_add(mime_entries, filename, strdup(mime));
}
return edi_content_provider_for_mime_get(mime);
}