diff --git a/src/scripting/see/hooks.c b/src/scripting/see/hooks.c index ed7fc4e5b..99bc31198 100644 --- a/src/scripting/see/hooks.c +++ b/src/scripting/see/hooks.c @@ -165,7 +165,7 @@ script_hook_pre_format_html(va_list ap, void *data) struct SEE_value args_[2], *args[2] = { &args_[0], &args_[1] }; struct SEE_value result; - evhook_use_params(ses, cached); + evhook_use_params(ses && cached); if (!cached->length || !*fragment->data) return EVENT_HOOK_STATUS_NEXT;