ges: Add NULL check before dereferencing

CID 1394494.
This commit is contained in:
Sebastian Dröge 2016-11-23 18:28:35 +02:00
parent be48b040ea
commit d9ab6f14e8

View file

@ -68,7 +68,7 @@ ges_init_post (GOptionContext * context, GOptionGroup * group, gpointer data,
}
uriasset_klass = g_type_class_ref (GES_TYPE_URI_CLIP_ASSET);
if (!uriasset_klass->discoverer)
if (!uriasset_klass || !uriasset_klass->discoverer)
goto failed;
if (!uriasset_klass->sync_discoverer)