From aea1082116dd2a86e66aa6bffeb2a0c608e409a3 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 8 Jul 2019 23:36:52 -0400 Subject: [PATCH] scenario: Do not dereference NULL pointer --- validate/gst/validate/gst-validate-scenario.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c index 0258d14f88..b05330c6f9 100644 --- a/validate/gst/validate/gst-validate-scenario.c +++ b/validate/gst/validate/gst-validate-scenario.c @@ -2922,7 +2922,8 @@ gst_validate_action_default_prepare_func (GstValidateAction * action) gst_validate_structure_resolve_variables (action->structure, scenario->priv->vars); for (i = 0; type->parameters[i].name; i++) { - if (g_str_has_suffix (type->parameters[i].types, "(GstClockTime)")) + if (type->parameters[i].types && + g_str_has_suffix (type->parameters[i].types, "(GstClockTime)")) gst_validate_action_get_clocktime (scenario, action, type->parameters[i].name, &tmp); }