From 3aacba15f821f8d7902473cff93bc506bad3b547 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 31 Oct 2015 18:26:43 +0100 Subject: Don't call up if the parent's jscontext has gone NULL in the meantime --- render/html_script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render') diff --git a/render/html_script.c b/render/html_script.c index ef6f4d673..c9fed647e 100644 --- a/render/html_script.c +++ b/render/html_script.c @@ -278,7 +278,7 @@ convert_script_sync_cb(hlcache_handle *script, /* attempt to execute script */ script_handler = select_script_handler(content_get_type(s->data.handle)); - if (script_handler != NULL) { + if (script_handler != NULL && parent->jscontext != NULL) { /* script has a handler */ const char *data; unsigned long size; -- cgit v1.2.3