Don't call up if the parent's jscontext has gone NULL in the meantime

This commit is contained in:
Daniel Silverstone 2015-10-31 18:26:43 +01:00
parent 60c52e1eaf
commit 3aacba15f8

View File

@ -278,7 +278,7 @@ convert_script_sync_cb(hlcache_handle *script,
/* attempt to execute script */ /* attempt to execute script */
script_handler = select_script_handler(content_get_type(s->data.handle)); 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 */ /* script has a handler */
const char *data; const char *data;
unsigned long size; unsigned long size;