pitivi-formatter: Do not g_file_test on a NULL pointer

This commit is contained in:
Thibault Saunier 2018-07-14 09:00:51 -04:00
parent fbdf04c674
commit fd029e1251

View file

@ -111,7 +111,7 @@ pitivi_can_load_uri (GESFormatter * dummy_instance, const gchar * uri,
xmlXPathContextPtr xpathCtx;
gchar *filename = g_filename_from_uri (uri, NULL, NULL);
if (!g_file_test (filename, G_FILE_TEST_EXISTS)) {
if (!filename || !g_file_test (filename, G_FILE_TEST_EXISTS)) {
g_free (filename);
return FALSE;
}