summaryrefslogtreecommitdiff
path: root/render/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/html.c')
-rw-r--r--render/html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/render/html.c b/render/html.c
index 06e2e0673..6d2421f6e 100644
--- a/render/html.c
+++ b/render/html.c
@@ -592,7 +592,9 @@ void html_finish_conversion(html_content *htmlc)
* object, but with its target set to the Document object (and
* the currentTarget set to the Window object)
*/
- js_fire_event(htmlc->jscontext, "load", htmlc->document, NULL);
+ if (htmlc->jscontext != NULL) {
+ js_fire_event(htmlc->jscontext, "load", htmlc->document, NULL);
+ }
/* convert dom tree to box tree */
LOG("DOM to box (%p)", htmlc);