The fix recently applied to document.write() also needs to be applied to document.writeln() This prevents a null pointer dereference.
Dave diff --git a/javascript/duktape/Document.bnd b/javascript/duktape/Document.bnd index 8b39ae4..1e7c49d 100644 --- a/javascript/duktape/Document.bnd +++ b/javascript/duktape/Document.bnd @@ -65,7 +65,9 @@ method Document::writeln() err = dom_node_get_user_data(priv->parent.node, corestring_dom___ns_key_html_content_data, &htmlc); - if (err == DOM_NO_ERR && htmlc->parser != NULL) { + if ((err == DOM_NO_ERR) && + (htmlc != NULL) && + (htmlc->parser != NULL)) { dom_hubbub_parser_insert_chunk(htmlc->parser, (uint8_t *)text, text_len); dom_hubbub_parser_insert_chunk(htmlc->parser, (uint8_t *)nl, SLEN(nl)); } ____________________________________________________________ FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop! Check it out at http://www.inbox.com/marineaquarium